Files
duty-teller/tests
Nikolay Tatarinov 4d09c8641c
All checks were successful
CI / lint-and-test (push) Successful in 1m6s
test: enhance admin API tests with database session mocking
- Introduced a mock database session for admin API tests to prevent real database access during CI.
- Updated test cases for the `/api/admin/me` endpoint to ensure consistent behavior without a real database.
- Improved error handling and clarity in tests by utilizing dependency overrides for session management.
- Ensured proper cleanup of dependency overrides after tests to maintain test isolation.
2026-03-06 18:08:45 +03:00
..