(writer)
| 63 | |
| 64 | |
| 65 | def test_remove_interception(writer): |
| 66 | h = InterceptHandler() |
| 67 | |
| 68 | with make_logging_logger("foobar", h) as logging_logger: |
| 69 | logger.add(writer, format="{message}") |
| 70 | logging_logger.debug("1") |
| 71 | logging_logger.removeHandler(h) |
| 72 | logging_logger.debug("2") |
| 73 | |
| 74 | result = writer.read() |
| 75 | assert result == "1\n" |
| 76 | |
| 77 | |
| 78 | def test_intercept_too_low(writer): |
nothing calls this directly
no test coverage detected
searching dependent graphs…