Skip to content

Commit

Permalink
100% test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Feb 25, 2024
1 parent d6e4c1f commit 9fdfe74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def test_color_environment_variables(monkeypatch: pytest.MonkeyPatch,
assert not bar.is_ansi_terminal
assert bar.enable_colors

monkeypatch.setenv(variable, 'false')
bar = progressbar.ProgressBar()
assert not bar.enable_colors

monkeypatch.setenv(variable, '')
bar = progressbar.ProgressBar()
assert not bar.enable_colors
Expand Down

0 comments on commit 9fdfe74

Please sign in to comment.