Skip to content

Commit

Permalink
remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Mar 14, 2024
1 parent 8c8627e commit 82e4e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions cat_win/tests/test_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def test_cat_output_full_b(self):
cat.main()
self.assertEqual(fake_out.getvalue(), expected_output)

@patch('sys.argv',
['<CAT>', 'enc:UTF-8', test_file_path, '-ub', '[Sample,TEST]', '-le'])
@patch('sys.argv', ['<CAT>', 'enc:UTF-8', test_file_path, '-ub', '[Sample,TEST]', '-le'])
def test_cat_output_full_c(self):
expected_output = ''
with open(test_result_C, 'r', encoding='utf-8') as output:
Expand Down
9 changes: 2 additions & 7 deletions cat_win/tests/test_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from cat_win.cat import remove_ansi_codes_from_line as cleaner
from cat_win.util.converter import Converter
try:
from cat_win.util.utility import comp_eval, comp_conv, split_replace
from cat_win.util.utility import comp_eval, comp_conv
except SyntaxError: # in case of Python 3.7
from cat_win.util.utilityold import comp_eval, comp_conv, split_replace
from cat_win.util.utilityold import comp_eval, comp_conv

# import sys
# sys.path.append('../cat_win')
Expand Down Expand Up @@ -166,9 +166,4 @@ def test_comp_conv_bin(self):
new_content = comp_conv(converter, test_content_in, '--bin', cleaner)
self.assertListEqual(new_content, test_content_out)

def test_split_replace(self):
param = '[\\\\x\\,\\\\,wt\\f\\]]'
expected_result = ['\\x,\\', 'wtf]']
self.assertListEqual(split_replace(param), expected_result)

# python -m unittest discover -s cat_win.tests -p test*.py

0 comments on commit 82e4e29

Please sign in to comment.