chore: add unit tests for pure functions + CI test job #11
Reference in New Issue
Block a user
Delete Branch "chore/add-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ajout d'une batterie de tests unitaires + intégration dans la CI.
Tests ajoutés
normalize_email_address()payload_matches_participant()format_search_result()CI
Nouveau job
testqui s'exécute avant le build Docker :pip install -r requirements.txt pytestpytest tests/ -vSi les tests échouent, le build ne part pas.
Fichiers
tests/test_server.py— 9 tests, 3 classespytest.ini— config pythonpath pour l'import desrc/.gitea/workflows/docker-build.yaml— ajout du job test