(caplog, capsys)
| 702 | |
| 703 | |
| 704 | def test_logger_adapter(caplog, capsys): |
| 705 | logger = logging.getLogger("Application") |
| 706 | adapter = logging.LoggerAdapter(logger, {"key": "adapted"}) |
| 707 | |
| 708 | app = Application(log=adapter, log_level=logging.INFO) |
| 709 | app.log_format = "%(key)s %(message)s" |
| 710 | app.log.info("test message") |
| 711 | |
| 712 | assert "adapted test message" in capsys.readouterr().err |
nothing calls this directly
no test coverage detected
searching dependent graphs…