Skip to content

Commit

Permalink
added changes to the unit test for logger
Browse files Browse the repository at this point in the history
Signed-off-by: aadityasinha-dotcom <[email protected]>
  • Loading branch information
aadityasinha-dotcom committed Sep 6, 2024
1 parent bb74d88 commit fbfe2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/core/test_sdk_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_object_should_be_instance_of_class(self):
def test_object_should_be_instance_with_logger_set_to_false(self):
"""Created object should be instance with logger set to False of SdkApi class."""
sdk_api = SdkApi(self.basic_props, self.default_url, log=False)
self.assertIsInstance(sdk_api, SdkApi)
self.assertEqual(sdk_api.logger.disabled, True)

@mock.patch("requests.Session.close")
def test_context_manager_closes_session(self, mock_close_request):
Expand Down

0 comments on commit fbfe2a2

Please sign in to comment.