We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488c741 commit 24138dbCopy full SHA for 24138db
tests/test_logger.py
@@ -29,12 +29,9 @@ def test_log__deprecation_warning(self):
29
with warnings_patch as patched_warnings, actual_log_patch as log_patch:
30
simple_logger.log(logging.INFO, 'Message')
31
32
- deprecation_warning = 'optimizely.logger.SimpleLogger is deprecated. ' \
33
- 'Please use standard python loggers.'
34
- patched_warnings.assert_called_once_with(
35
- deprecation_warning,
36
- DeprecationWarning
37
- )
+ msg = "<class 'optimizely.logger.SimpleLogger'> is deprecated. " \
+ "Please use standard python loggers."
+ patched_warnings.assert_called_once_with(msg, DeprecationWarning)
38
log_patch.log.assert_called_once_with(logging.INFO, 'Message')
39
40
0 commit comments