From 721d6ca3601c53c055ae9dcccf63ea2842f42aa3 Mon Sep 17 00:00:00 2001 From: Silas Kraume Date: Fri, 13 Dec 2024 20:50:36 +0100 Subject: [PATCH] fix checksum test --- cat_win/tests/src/service/test_checksum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cat_win/tests/src/service/test_checksum.py b/cat_win/tests/src/service/test_checksum.py index cc78eff..866b778 100644 --- a/cat_win/tests/src/service/test_checksum.py +++ b/cat_win/tests/src/service/test_checksum.py @@ -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"