Skip to content

Commit 9131a48

Browse files
committed
mock log exception
1 parent 51df7d2 commit 9131a48

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

delta_backend/tests/test_convert_to_flat_json.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,20 @@ def setUp(self):
7171
},
7272
],
7373
)
74+
self.logger_info_patcher = patch("logging.Logger.info")
75+
self.mock_logger_info = self.logger_info_patcher.start()
7476

77+
self.logger_exception_patcher = patch("logging.Logger.exception")
78+
self.mock_logger_exception = self.logger_exception_patcher.start()
79+
7580
def tearDown(self):
7681
"""Tear down the mock DynamoDB table."""
77-
self.firehose_logger_patcher.stop()
7882
self.table.delete()
7983
self.dynamodb_resource = None
84+
self.firehose_logger_patcher.stop()
85+
self.logger_exception_patcher.stop()
86+
self.logger_info_patcher.stop()
87+
8088

8189
@staticmethod
8290
def get_event(event_name="INSERT", operation="operation", supplier="EMIS"):

0 commit comments

Comments
 (0)