MCPcopy
hub / github.com/scrapy/scrapy / test_top_level_logger

Method test_top_level_logger

tests/test_utils_log.py:49–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 self.handler.addFilter(TopLevelFormatter(["test"]))
48
49 def test_top_level_logger(self):
50 logger = logging.getLogger("test")
51 with self.handler as log:
52 logger.warning("test log msg")
53 log.check(("test", "WARNING", "test log msg"))
54
55 def test_children_logger(self):
56 logger = logging.getLogger("test.test1")

Callers

nothing calls this directly

Calls 1

checkMethod · 0.80

Tested by

no test coverage detected