blob: bc8ca134fb6749bae611d0d3efe0a471fcc74888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/tests/conftest.py b/tests/conftest.py
index 10482b8..25827a0 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -7,3 +7,9 @@ from click.testing import CliRunner
@pytest.fixture
def runner():
return CliRunner()
+
+
+@pytest.fixture(autouse=True)
+def clean_env(monkeypatch):
+ monkeypatch.delenv("FORCE_COLOR", raising=False)
+ monkeypatch.delenv("NO_COLOR", raising=False)
|