Skip to content

Commit

Permalink
Fix local test failure to do with FORCE_COLOR (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Dec 28, 2021
1 parent bbc47b4 commit 3d34bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Expand Up @@ -602,7 +602,7 @@ def test_main_noxfile_options_with_sessions_override(

@pytest.mark.parametrize(("isatty_value", "expected"), [(True, True), (False, False)])
def test_main_color_from_isatty(monkeypatch, isatty_value, expected):
monkeypatch.delenv("FORCE_COLOR")
monkeypatch.delenv("FORCE_COLOR", raising=False)
monkeypatch.setattr(sys, "argv", [sys.executable])
with mock.patch("nox.workflow.execute") as execute:
execute.return_value = 0
Expand All @@ -627,7 +627,7 @@ def test_main_color_from_isatty(monkeypatch, isatty_value, expected):
],
)
def test_main_color_options(monkeypatch, color_opt, expected):
monkeypatch.delenv("FORCE_COLOR")
monkeypatch.delenv("FORCE_COLOR", raising=False)
monkeypatch.setattr(sys, "argv", [sys.executable, color_opt])
with mock.patch("nox.workflow.execute") as execute:
execute.return_value = 0
Expand Down

0 comments on commit 3d34bbd

Please sign in to comment.