Skip to content

Clear every service API key in the test fixture - #176

Open
shi-wang (shiwng) wants to merge 1 commit into
microsoft:mainfrom
shiwng:test-clear-service-api-keys
Open

shi-wang (shiwng) wants to merge 1 commit into
microsoft:mainfrom
shiwng:test-clear-service-api-keys

Conversation

@shiwng

@shiwng shi-wang (shiwng) commented Dec 5, 2026 •

Copy link
Copy Markdown

Fixes #147 by clearing every service API key in the shared test fixture.
A key already in the shell leaked into the login test and stopped the new key becoming the default.
The fixture now clears each preset key name, taken from the preset list.
Reproduced the failure with GEMINI_API_KEY set, then the test passed with GEMINI_API_KEY and XAI_API_KEY set.
Provider tests passed 28, the core suite passed 1837 with 4 skipped, and pyflakes printed nothing.

This branch has not been deployed

No deployments
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.

test_service_presets_configure_chat_sessions fails when other service API keys are set

1 participant