Skip to content

Commit

Permalink
Rename color_test functions to better describe what the test is doing
Browse files Browse the repository at this point in the history
  • Loading branch information
DW-Ernest committed Apr 6, 2022
1 parent e13e5aa commit 41ce349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/util/color_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def expect_disabled(text: str):
assert colorize(text, color) == text


def test_colorize_1(monkeypatch):
def test_colorize_enabled_terminal_disabled_piped(monkeypatch):
monkeypatch.setenv('CLICOLOR', '1')

if stdout.isatty():
Expand All @@ -32,13 +32,13 @@ def test_colorize_1(monkeypatch):
expect_disabled('abc')


def test_colorize_2(monkeypatch):
def test_colorize_enabled_force(monkeypatch):
monkeypatch.setenv('CLICOLOR_FORCE', '1')

expect_enabled('abc')


def test_colorize_3(monkeypatch):
def test_colorize_disabled(monkeypatch):
monkeypatch.setenv('CLICOLOR', '0')

expect_disabled('abc')

0 comments on commit 41ce349

Please sign in to comment.