Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e82c1e7

Browse files
committed
Revert "Add tests for NO_COLOR support"
This reverts commit 8520455.
1 parent 69b2cb5 commit e82c1e7

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

tests/color_test.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import unicode_literals
22

3-
import os
43
import sys
54

65
import mock
@@ -51,20 +50,3 @@ def test_use_color_tty_without_color_support():
5150
def test_use_color_raises_if_given_shenanigans():
5251
with pytest.raises(InvalidColorSetting):
5352
use_color('herpaderp')
54-
55-
56-
def test_no_color_env_unset():
57-
with mock.patch.dict(os.environ):
58-
if 'NO_COLOR' in os.environ:
59-
del os.environ['NO_COLOR']
60-
assert use_color('always') is True
61-
62-
63-
def test_no_color_env_empty():
64-
with mock.patch.dict(os.environ, NO_COLOR=''):
65-
assert use_color('always') is True
66-
67-
68-
def test_no_color_env_non_empty():
69-
with mock.patch.dict(os.environ, NO_COLOR=' '):
70-
assert use_color('always') is False

0 commit comments

Comments
 (0)