Skip to content

Commit 6c865bd

Browse files
committed
fix: Verify error gets raised 2
1 parent 8df82ba commit 6c865bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_unit_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,11 @@ def error_callback_signer(data: bytes) -> bytes:
10491049
signer=signer
10501050
)
10511051

1052+
# Verify the output file stays empty,
1053+
# as no data should have been written
1054+
self.assertTrue(os.path.exists(output_path))
1055+
self.assertEqual(os.path.getsize(output_path), 0)
1056+
10521057
finally:
10531058
shutil.rmtree(temp_dir)
10541059

0 commit comments

Comments
 (0)