Skip to content

Tests, agregar más tests#130

Open
pwqw wants to merge 5 commits intoPyAr:masterfrom
pwqw:mas-test
Open

Tests, agregar más tests#130
pwqw wants to merge 5 commits intoPyAr:masterfrom
pwqw:mas-test

Conversation

@pwqw
Copy link
Copy Markdown

@pwqw pwqw commented Feb 17, 2026

Descripción

Apenas 5 commits gigaaantes, que son imposibles de leer,
medio que conviene inspeccionarlos en local con el IDE, agente, o Interfaz favorita.

Excusa

Para tener más de cobertura ahora que con la I.A. tiende a ser un poco mas fácil de mantener.

Realidad

Gracias a estos test se realizaron las fixes.

Funcionamiento

¡y son muy fáciles de ejecutar: make test y ya!

Ver makefile

botON added 5 commits February 17, 2026 01:14
- Introduced multiple test files to cover various functionalities including authentication, database export to JSON, management of PyCamp, and voting logic.
- Added tests for the `get_admins_username` function to ensure correct retrieval of admin usernames.
- Implemented tests for the `export_db_2_json` function to validate the structure and content of the exported data.
- Created tests for managing PyCamp instances, including activation and duration calculations.
- Developed tests for the `Vote` model to ensure proper creation and counting of votes, including handling of unique constraints.
- Introduced multiple test files covering various functionalities including announcements, authentication, project management, voting, and wizard commands.
- Implemented tests for user permissions, project lifecycle, and interaction with the database to ensure robust functionality.
- Enhanced test coverage for asynchronous operations and mock interactions with the Telegram bot API.
- Created a new test to ensure that only admin users can execute the `/contar_votos` command.
- Updated existing tests to include the admin username in the context for vote counting.
- Enhanced the test suite to validate responses for both authorized and unauthorized users.
- Introduced a new test file for the `show_version` command in `devtools.py`, verifying the output for clean and dirty worktrees, as well as Sentry configuration.
- Expanded tests in `manage_pycamp.py` to include scenarios for rejecting empty names, deactivating previous camps, and blocking non-admin users.
- Added tests for listing participants in active camps, documenting a known bug in the process.
- Enhanced overall test coverage for command functionalities and user permissions.
- Introduced two new tests to verify that when there are no available slots, the bot sends appropriate hints in plain text without MarkdownV2 formatting.
- Updated the `aux_resolve_show_all` function to return true for no parameters and false for the 'futuros' argument, enhancing command behavior consistency.
- These changes improve user experience by providing clearer feedback in scenarios with no available slots.
@pwqw pwqw changed the title 2. Agregar más test Tests, agregar más tests Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant