Skip to content

Commit 85dda23

Browse files
committed
tests: Make sure colors are disabled
1 parent a74a605 commit 85dda23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ def run(self, *args: str) -> click.testing.Result:
7979

8080
@pytest.fixture
8181
def runner(monkeypatch: pytest.MonkeyPatch, credentials: FakeCredentials) -> Runner:
82-
rich.reconfigure(width=80)
82+
rich.reconfigure(width=80, no_color=True)
8383
monkeypatch.setenv("COLUMNS", "80") # for future console instances
84+
monkeypatch.setenv("NO_COLOR", "1")
8485
monkeypatch.setenv(cli.API_USER_ENV_VAR, credentials.USERNAME)
8586
monkeypatch.setenv(cli.API_KEY_ENV_VAR, credentials.API_KEY)
8687
return Runner(credentials.SHARECODE)

0 commit comments

Comments
 (0)