(writer)
| 158 | |
| 159 | |
| 160 | def test_using_logging_function(writer): |
| 161 | with make_logging_logger(None, InterceptHandler()): |
| 162 | logger.add(writer, format="{function} {line} {module} {file.name} {message}") |
| 163 | logging.warning("ABC") |
| 164 | |
| 165 | result = writer.read() |
| 166 | assert result == "test_using_logging_function 163 test_interception test_interception.py ABC\n" |
nothing calls this directly
no test coverage detected