Skip to content

Add token exchange metadata fallbacks and refresh match coverage#50

Merged
SoldierSacha merged 1 commit intomainfrom
codex/fix-coverage-threshold-failure-ooo725
Nov 12, 2025
Merged

Add token exchange metadata fallbacks and refresh match coverage#50
SoldierSacha merged 1 commit intomainfrom
codex/fix-coverage-threshold-failure-ooo725

Conversation

@SoldierSacha
Copy link
Collaborator

Summary

  • add token exchange provider tests that cover server-error and all-404 discovery responses so the fallback token endpoint path is exercised
  • add a token handler test that forces an unrecognized request through the pattern match to cover the final branch and import the TokenRequest helper for patching

Testing

  • uv run coverage run -m pytest -n 0 tests/unit/client/test_oauth2_providers.py tests/unit/server/auth/test_token_handler.py

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant