Skip to content

TEST: Add unit tests for pyrit/auth/ module#1596

Open
romanlutz wants to merge 1 commit intomicrosoft:mainfrom
romanlutz:test/auth-coverage
Open

TEST: Add unit tests for pyrit/auth/ module#1596
romanlutz wants to merge 1 commit intomicrosoft:mainfrom
romanlutz:test/auth-coverage

Conversation

@romanlutz
Copy link
Copy Markdown
Contributor

Summary

Adds unit tests for 3 previously untested auth files.

New Test Files

Source File Tests Coverage
\�uth_config.py\ 5 Constants, types, configuration values
\�uthenticator.py\ 6 ABC contract enforcement, token attribute
\manual_copilot_authenticator.py\ 13 Init validation (missing token, invalid JWT, missing claims), env var fallback, get/refresh token sync+async

Testing

All 24 tests pass locally.

Adds tests for previously untested auth files:
- auth_config.py (constants, types, values)
- authenticator.py (ABC methods, token attribute)
- manual_copilot_authenticator.py (init validation, JWT, env vars, token ops)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant