Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced Credentials into conftest and refactored tests #373

Merged
merged 20 commits into from
Jan 8, 2025

Conversation

davorrunje
Copy link
Collaborator

@davorrunje davorrunje commented Jan 7, 2025

Tests are currently manipulation the OAI_CONFIG_LIST file manually. This PR uses fixtures for constructing llm_config and config_list object. Since they contain sensitive information, they are encapsulated into a Credentials object that overrides __repr__ and __str__ methods in such a way to redact API keys. All tests are refactored to use new way of handling secrets in tests.

Why are these changes needed?

Related issue number

Closes #389

Checks

@davorrunje davorrunje changed the title [Draft: CI Test] Introduced Credentials into conftest and refactored tests Introduced Credentials into conftest and refactored tests Jan 8, 2025
@davorrunje davorrunje enabled auto-merge January 8, 2025 13:50
@davorrunje davorrunje added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit a1e9dc3 Jan 8, 2025
223 checks passed
@rjambrecic rjambrecic deleted the refactor-testing-credentials branch January 9, 2025 07:10
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.

[Chore]: Introduce Credentials into conftest and refactor tests
3 participants