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

Fix running the test suite when NO_COLOR is set in calling env #25

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Nov 23, 2023

Fix the test suite to run successfully when NO_COLOR is set in the environment in which pytest is called. This is done via adding a new fixture that "sanitizes" the environment for the duration of test run. This way pytest respects NO_COLOR while the tested library itself produces colored output as expected.

Fix the test suite to run successfully when NO_COLOR is set
in the environment in which pytest is called.  This is done via adding
a new fixture that "sanitizes" the environment for the duration of test
run.  This way pytest respects NO_COLOR while the tested library itself
produces colored output as expected.
@r-m-n
Copy link
Member

r-m-n commented Nov 24, 2023

Thanks!

@r-m-n r-m-n merged commit 354ed73 into click-contrib:master Nov 24, 2023
8 checks passed
@mgorny mgorny deleted the nocolor-pytest branch November 24, 2023 12:53
@mgorny
Copy link
Contributor Author

mgorny commented Nov 24, 2023

Thanks!

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.

None yet

2 participants