From 362123ef6fe73c6e89af493ef5e71648d7e665bc Mon Sep 17 00:00:00 2001 From: Silas Kraume Date: Sun, 1 Oct 2023 12:58:25 +0200 Subject: [PATCH] made test more consistent --- cat_win/tests/test_cat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cat_win/tests/test_cat.py b/cat_win/tests/test_cat.py index a30e57de..4187642a 100644 --- a/cat_win/tests/test_cat.py +++ b/cat_win/tests/test_cat.py @@ -3,6 +3,7 @@ import os from cat_win import cat +from cat_win.const.argconstants import ARGS_ENDS, ARGS_REVERSE, ARGS_CHR from cat_win.tests.mocks.std import StdOutMock from cat_win.util.file import File from cat_win.util.holder import Holder @@ -48,7 +49,7 @@ def test_cat_output_multiple_files(self): def test_cat_output_reverse(self): cat.holder.set_files([test_file_path]) - cat.holder.set_args([(5, '')]) #reverse + cat.holder.set_args([(ARGS_REVERSE, '')]) #reverse check_against = test_file_content check_against.reverse() @@ -60,7 +61,7 @@ def test_cat_output_reverse(self): def test_cat_output_ends_and_tabs(self): cat.holder.set_files([test_file_path]) - cat.holder.set_args([(2, ''), (25, '')]) #ends & char + cat.holder.set_args([(ARGS_ENDS, ''), (ARGS_CHR, '')]) #ends & char check_against = ('\n'.join([c.replace('\t', '^TAB') + '$' for c in test_file_content]) + '\n')