Skip to content

Commit

Permalink
fix checksum test
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Dec 13, 2024
1 parent 9e11a72 commit 721d6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cat_win/tests/src/service/test_checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_checksum_colored(self):
self.assertEqual(get_checksum_from_file(test_file_path, ['X', 'Y']), expected_output)

def test_checksum_invalid_file(self):
self.assertEqual(get_checksum_from_file('randomFileThatHopefullyDoesNotExistWithWeirdCharsForSafety*!?\\/:<>|'), 'OSError')
self.assertIn(get_checksum_from_file('randomFileThatHopefullyDoesNotExistWithWeirdCharsForSafety*!?\\/:<>|'), ['FileNotFoundError', 'OSError'])

def test_print_checksum(self):
expected_output = f"XChecksum of '{test_file_path}':Y\n"
Expand Down

0 comments on commit 721d6ca

Please sign in to comment.