The factory isn't called directly but from structlog._config so deducing has to be slightly smarter.
(self)
| 82 | logging.setLoggerClass(self.original_logger) |
| 83 | |
| 84 | def test_deduces_correct_name(self): |
| 85 | """ |
| 86 | The factory isn't called directly but from structlog._config so |
| 87 | deducing has to be slightly smarter. |
| 88 | """ |
| 89 | assert "tests.additional_frame" == ( |
| 90 | additional_frame(LoggerFactory()).name |
| 91 | ) |
| 92 | assert "tests.test_stdlib" == LoggerFactory()().name |
| 93 | |
| 94 | def test_ignores_frames(self): |
| 95 | """ |
nothing calls this directly
no test coverage detected