[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-25 20:05:32 +00:00
parent 7eebd11a28
commit f380419a51
1 changed files with 3 additions and 2 deletions

View File

@ -221,10 +221,11 @@ def test_NO_COLOR_and_FORCE_COLOR(
monkeypatch.setitem(os.environ, "FORCE_COLOR", FORCE_COLOR)
assert_color(expected)
@pytest.mark.skipif(
os.environ["TERM"] == "dumb" or "NO_COLOR" in os.environ,
reason="dumb terminals can't handle color"
)
reason="dumb terminals can't handle color",
)
def test_empty_NO_COLOR_and_FORCE_COLOR_ignored(monkeypatch: MonkeyPatch) -> None:
monkeypatch.setitem(os.environ, "NO_COLOR", "")
monkeypatch.setitem(os.environ, "FORCE_COLOR", "")