Skip to content

Fix config test: ignore all env vars in test environment #10835

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

Merged
merged 3 commits into from
Feb 25, 2022

Conversation

di
Copy link
Member

@di di commented Feb 25, 2022

The change in #10803 to remove the env -i flag to docker-compose run in favor of moving these variables into the dev/environment file instead had the effect of inserting all environment variables in dev/environment into the test environment when run via make tests

This didn't affect any tests except for test_config, which was making assumptions about what environment variables were present in the test environment. To remedy this, we make the test explicitly ignore all environment variables in the test environment to restore it's intended behavior.

Also cleans up the test a bit.

@di di requested a review from ewdurbin February 25, 2022 19:59
@di di force-pushed the fix-config-test branch from d63a583 to 578f6ba Compare February 25, 2022 20:02
@di di merged commit 93b2258 into pypi:main Feb 25, 2022
@di di deleted the fix-config-test branch February 25, 2022 20:10
domdfcoding pushed a commit to domdfcoding/warehouse that referenced this pull request Jun 7, 2022
* Remove unused other_settings param

* Don't mutate original test param

* Ignore all environment variables in the test env

Except for WAREHOUSE_ENV
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