Skip to content

Commit 9fdfe74

Browse files
committed
100% test coverage
1 parent d6e4c1f commit 9fdfe74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_color.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ def test_color_environment_variables(monkeypatch: pytest.MonkeyPatch,
5555
assert not bar.is_ansi_terminal
5656
assert bar.enable_colors
5757

58+
monkeypatch.setenv(variable, 'false')
59+
bar = progressbar.ProgressBar()
60+
assert not bar.enable_colors
61+
5862
monkeypatch.setenv(variable, '')
5963
bar = progressbar.ProgressBar()
6064
assert not bar.enable_colors

0 commit comments

Comments
 (0)