test: agregar tests de GUI con mocks de tkinter - #48
Merged
Conversation
28 tasks
alexricardotapiacarita-ai
self-requested a review
November 28, 2025 20:10
Jhos3ph
approved these changes
Nov 28, 2025
Jhos3ph
left a comment
Contributor
There was a problem hiding this comment.
the mew files are good. Nothing else to say xD 🤣
This was referenced Nov 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Descripción
Este PR implementa el testing manual completo de la interfaz gráfica de la calculadora y agrega tests automatizados mediante el archivo
test_gui_calculator.py. Se han probado todas las funcionalidades de la GUI incluyendo operaciones básicas, decimales, funciones científicas y manejo de errores.Cambios principales:
test_gui_calculator.pycon tests automatizados usando pytestconftest.pycon fixtures para sustituir componentes gráficos de Tkinter por dummies🔗 Issue Relacionado
Related to #23
🎯 Tipo de Cambio
🧪 ¿Cómo se ha probado?
Comandos ejecutados:
Casos de prueba manuales ejecutados:
Operaciones básicas:
5 + 3 = 810 - 4 = 67 * 6 = 4215 / 3 = 52 ^ 3 = 8Operaciones con decimales:
5.5 + 2.3 = 7.810.5 / 2 = 5.25Funciones científicas:
abs(-5) = 5max(10, 20) = 20min(10, 20) = 10Manejo de errores:
Flujos de usuario:
✅ Checklist
📝 Notas Adicionales
Este PR cumple con todos los objetivos especificados en el issue #23:
test_gui_calculator. pycon tests automatizados para la GUIconftest.pycon fixtures de pytest que permiten ejecutar los tests sin necesidad de tener Tcl/Tk instalado (ideal para CI/CD)Sobre conftest.py:
El archivo
conftest.pyimplementa fixtures conautouse=Trueque sustituyen automáticamente los componentes de Tkinter (Tk,Entry,Button,Label) por versiones dummy durante la ejecución de tests. Esto permite:👥 Revisores Sugeridos
@Jhos3ph