Skip to content

Commit fb12bce

Browse files
author
Andres Sanchez
committed
Added yield and tearDown to apply_fixtures function
1 parent 139ea81 commit fb12bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/test_serialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def apply_fixtures(self):
8383
self.mock_signer = MagicMock()
8484
self.mock_signer.update.return_value = None
8585
self.mock_signer.finalize.return_value = VALUES["signature"]
86-
87-
def tearDown(self):
86+
yield
87+
# Run tearDown
8888
self.mock_serialize_acc_patcher.stop()
8989
self.mock_encrypt_patcher.stop()
9090
self.mock_valid_frame_length_patcher.stop()

0 commit comments

Comments
 (0)