mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Change test to remove missed branch
This commit is contained in:
parent
e9ff1be96c
commit
84dcb91119
1 changed files with 1 additions and 3 deletions
|
|
@ -54,9 +54,7 @@ def test_use_color_raises_if_given_shenanigans():
|
||||||
|
|
||||||
|
|
||||||
def test_no_color_env_unset():
|
def test_no_color_env_unset():
|
||||||
with mock.patch.dict(os.environ):
|
with mock.patch.dict(os.environ, clear=True):
|
||||||
if 'NO_COLOR' in os.environ:
|
|
||||||
del os.environ['NO_COLOR']
|
|
||||||
assert use_color('always') is True
|
assert use_color('always') is True
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue