Skip to content

Commit fb596c8

Browse files
committed
test: Disable color while running CLI tests
1 parent 860b56e commit fb596c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nibabel/cmdline/tests/test_roi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
from nibabel.testing import data_path
1010

1111

12+
@pytest.fixture(scope='module', autouse=True)
13+
def NO_COLOR():
14+
with mock.patch.dict(os.environ, {'NO_COLOR': '1'}):
15+
yield
16+
17+
1218
def test_parse_slice():
1319
assert parse_slice(None) == slice(None)
1420
assert parse_slice('1:5') == slice(1, 5)

0 commit comments

Comments
 (0)