Skip to content

Commit e4f8fa8

Browse files
committed
chore: remove unnecessary test
1 parent 683a03e commit e4f8fa8

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

tests/functional/test_logger_utils.py

-29
Original file line numberDiff line numberDiff line change
@@ -195,35 +195,6 @@ def test_copy_config_to_ext_loggers_should_not_break_append_keys(stdout, log_lev
195195
powertools_logger.append_keys(key="value")
196196

197197

198-
def test_copy_config_to_ext_loggers_child_loggers_append_before_work(stdout):
199-
# GIVEN powertools logger AND child initialized AND
200-
201-
# GIVEN Loggers are initialized
202-
# create child logger before parent to mimick
203-
# importing logger from another module/file
204-
# as loggers are created in global scope
205-
service = service_name()
206-
child = Logger(stream=stdout, service=service, child=True)
207-
parent = Logger(stream=stdout, service=service)
208-
209-
# WHEN a child Logger adds an additional key AND parent logger adds additional key
210-
child.structure_logs(append=True, customer_id="value")
211-
parent.structure_logs(append=True, user_id="value")
212-
# WHEN configuration copied from powertools logger
213-
# AND powertools logger and child logger used
214-
utils.copy_config_to_registered_loggers(source_logger=parent)
215-
parent.warning("Logger message")
216-
child.warning("Child logger message")
217-
218-
# THEN payment_id key added to both powertools logger and child logger
219-
parent_log, child_log = capture_multiple_logging_statements_output(stdout)
220-
assert "customer_id" in parent_log
221-
assert "customer_id" in child_log
222-
assert "user_id" in parent_log
223-
assert "user_id" in child_log
224-
assert child.parent.name == service
225-
226-
227198
def test_copy_config_to_ext_loggers_child_loggers_append_after_works(stdout):
228199
# GIVEN powertools logger AND child initialized AND
229200

0 commit comments

Comments
 (0)