MCPcopy Create free account
hub / github.com/hynek/structlog / test_empty_processors

Method test_empty_processors

tests/test_config.py:413–421  ·  view source on GitHub ↗

An empty list is a valid value for processors so it must be preserved.

(self)

Source from the content-addressed store, hash-verified

411 assert dict is p._context_class
412
413 def test_empty_processors(self):
414 """
415 An empty list is a valid value for processors so it must be preserved.
416 """
417 # We need to do a bind such that we get an actual logger and not just
418 # a lazy proxy.
419 logger = wrap_logger(object(), processors=[]).new()
420
421 assert [] == logger._processors
422
423 def test_wrap_returns_proxy(self):
424 """

Callers

nothing calls this directly

Calls 2

wrap_loggerFunction · 0.90
newMethod · 0.45

Tested by

no test coverage detected