Context
Core logic needs unit tests to ensure correctness and prevent regressions. Priority is TokenManager, providers, and storage.
Goal
Achieve >80% code coverage with fast unit tests.
Implementation
Acceptance Criteria
Dependencies
Notes
- Use pytest
- Mock time for expiration tests
- Test edge cases: expired, invalid, malformed tokens
- Test concurrency safety (if needed)
Context
Core logic needs unit tests to ensure correctness and prevent regressions. Priority is TokenManager, providers, and storage.
Goal
Achieve >80% code coverage with fast unit tests.
Implementation
tests/test_opaque_provider.pytests/test_token_manager.pytests/test_memory_storage.pytests/conftest.pywith fixturesAcceptance Criteria
test_validate_returns_none_for_expired_token)Dependencies
Notes