-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
IntermediateenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
- No test files exist. Adding tests ensures reliability and prevents regressions.
- Relevant part of the codebase: Create backend/tests/ directory with tests for:
- backend/app/routers/auth.py - login, register
- backend/app/routers/leave.py - apply, approve, balance calculations
- backend/app/routers/users.py - role-based access control
Expected outcome:
- Use pytest and httpx for FastAPI testing
- Test happy paths, error cases, and edge cases
- Mock database sessions where appropriate
- Achieve at least 70% code coverage for critical paths
- Add pytest to requirements.txt and create pytest.ini
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
IntermediateenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed