Skip to content

Commit 9a41a5e

Browse files
committed
Fix tests
1 parent 9970637 commit 9a41a5e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

opentelemetry-sdk/tests/test_configurator.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,9 @@ def test_logging_init_exporter_without_handler_setup(self):
698698
def test_logging_init_disable_default(self, logging_mock, tracing_mock):
699699
_initialize_components(auto_instrumentation_version="auto-version")
700700
self.assertEqual(tracing_mock.call_count, 1)
701-
logging_mock.assert_called_once_with(mock.ANY, mock.ANY, False)
701+
logging_mock.assert_called_once_with(
702+
mock.ANY, mock.ANY, False, "%(levelname)s:%(name)s:%(message)s"
703+
)
702704

703705
@patch.dict(
704706
environ,
@@ -712,7 +714,9 @@ def test_logging_init_disable_default(self, logging_mock, tracing_mock):
712714
def test_logging_init_enable_env(self, logging_mock, tracing_mock):
713715
with self.assertLogs(level=WARNING):
714716
_initialize_components(auto_instrumentation_version="auto-version")
715-
logging_mock.assert_called_once_with(mock.ANY, mock.ANY, True)
717+
logging_mock.assert_called_once_with(
718+
mock.ANY, mock.ANY, True, "%(levelname)s:%(name)s:%(message)s"
719+
)
716720
self.assertEqual(tracing_mock.call_count, 1)
717721

718722
@patch.dict(
@@ -837,6 +841,7 @@ def test_initialize_components_kwargs(
837841
"TEST_LOG_EXPORTERS_DICT",
838842
"TEST_RESOURCE",
839843
True,
844+
"%(levelname)s:%(name)s:%(message)s",
840845
)
841846

842847

0 commit comments

Comments
 (0)