From ccd1ca7c579167a1e8da43cec56653c1059a8c6e Mon Sep 17 00:00:00 2001 From: Silas Kraume Date: Mon, 15 Jan 2024 17:00:43 +0100 Subject: [PATCH] removed color output from tests --- cat_win/tests/test_cat.py | 1 + cat_win/tests/test_full.py | 2 ++ cat_win/tests/test_shell.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/cat_win/tests/test_cat.py b/cat_win/tests/test_cat.py index 084d6d04..c745c843 100644 --- a/cat_win/tests/test_cat.py +++ b/cat_win/tests/test_cat.py @@ -18,6 +18,7 @@ test_file_content = f.read().split('\n') +@patch('cat_win.cat.default_color_dic', dict.fromkeys(cat.color_dic, '')) @patch('cat_win.cat.color_dic', dict.fromkeys(cat.color_dic, '')) class TestCat(TestCase): maxDiff = None diff --git a/cat_win/tests/test_full.py b/cat_win/tests/test_full.py index 40ae6271..958698ca 100644 --- a/cat_win/tests/test_full.py +++ b/cat_win/tests/test_full.py @@ -21,6 +21,8 @@ @patch('cat_win.cat.sys.stdin', StdInMock()) +@patch('cat_win.cat.default_color_dic', dict.fromkeys(cat.color_dic, '')) +@patch('cat_win.cat.color_dic', dict.fromkeys(cat.color_dic, '')) class TestCatFull(TestCase): maxDiff = None diff --git a/cat_win/tests/test_shell.py b/cat_win/tests/test_shell.py index 1fcbaab4..1b3e88a2 100644 --- a/cat_win/tests/test_shell.py +++ b/cat_win/tests/test_shell.py @@ -11,6 +11,8 @@ @patch('cat_win.cat.sys.argv', ['']) @patch('cat_win.cat.stdinhelper.get_stdin_content', stdinhelpermock.get_stdin_content) +@patch('cat_win.cat.default_color_dic', dict.fromkeys(cat.color_dic, '')) +@patch('cat_win.cat.color_dic', dict.fromkeys(cat.color_dic, '')) class TestShell(TestCase): maxDiff = None