From 702157b4be1f4fcf993e92f01d0a4d952f28b7a7 Mon Sep 17 00:00:00 2001 From: Silas Kraume Date: Tue, 16 Jan 2024 00:58:32 +0100 Subject: [PATCH] fix ansi test --- cat_win/tests/test_ansi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cat_win/tests/test_ansi.py b/cat_win/tests/test_ansi.py index a93311d2..f60ff790 100644 --- a/cat_win/tests/test_ansi.py +++ b/cat_win/tests/test_ansi.py @@ -81,6 +81,8 @@ class TestAnsiNotPiped(TestCase): def tearDown(self): cat._calculate_line_prefix_spacing.cache_clear() cat._calculate_line_length_prefix_spacing.cache_clear() + cat.arg_parser = ArgParser() + cat.holder = Holder() @patch('cat_win.cat.sys.argv', ['', ansi_pos_file_path]) @patch('cat_win.cat.const_dic', strip_color_dic_true)