MCPcopy
hub / github.com/scrapy/scrapy / test_different_name_logger

Method test_different_name_logger

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

Source from the content-addressed store, hash-verified

65 log.check(("test2", "WARNING", "test log msg"))
66
67 def test_different_name_logger(self):
68 logger = logging.getLogger("different")
69 with self.handler as log:
70 logger.warning("test log msg")
71 log.check(("different", "WARNING", "test log msg"))
72
73
74class TestLogCounterHandler:

Callers

nothing calls this directly

Calls 1

checkMethod · 0.80

Tested by

no test coverage detected