(writer)
| 68 | |
| 69 | |
| 70 | def test_remove_interception(writer): |
| 71 | h = InterceptHandler() |
| 72 | |
| 73 | with make_logging_logger("foobar", h) as logging_logger: |
| 74 | logger.add(writer, format="{message}") |
| 75 | logging_logger.debug("1") |
| 76 | logging_logger.removeHandler(h) |
| 77 | logging_logger.debug("2") |
| 78 | |
| 79 | result = writer.read() |
| 80 | assert result == "1\n" |
| 81 | |
| 82 | |
| 83 | def test_intercept_too_low(writer): |
nothing calls this directly
no test coverage detected