Repository navigation
test: cover client.py JWT/JWKS and cli.py formatters - #51
Merged
Merged
Conversation
- test_client.py gets three new test classes: TestRequestEmptyBody for _request's content-length=0 and empty-body return-None branches, TestGetJwks for the one-shot fetch + in-memory cache, TestDecodeToken for the matching-kid happy path plus the AuthenticationError raised when no JWK matches the token's kid. - test_cli_helpers.py gets TestFormatHelpers for the _kwh / _w / _pct branches that every print path uses, and TestMainDispatch asserting that main() closes any live sync-client in finally on both success and exception. Coverage: onekommafive/client.py 90% -> 100%, onekommafive/cli.py 90% -> 91%, project total 95.11% -> 96.14%. Co-Authored-By: Claude Opus 4.7 <[email protected]> Claude-Session: https://claude.ai/code/session_01RgkYaQACLxezeceA1hrXQs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Schließt die zwei Coverage-Lücken, die am dichtesten am 95-Prozent-Gate lagen.
client.py: 90 → 100 Prozent
Drei neue Klassen in `tests/test_client.py`:
cli.py: 90 → 91 Prozent
Gesamt
Puffer über dem 95-Prozent-Gate wächst von 0.11 auf 1.14 Prozentpunkte.
Test plan
🤖 Generated with Claude Code
https://claude.ai/code/session_01RgkYaQACLxezeceA1hrXQs