(caplog: pytest.LogCaptureFixture)
| 240 | |
| 241 | |
| 242 | def test_log_access(caplog: pytest.LogCaptureFixture) -> None: |
| 243 | caplog.set_level(logging.INFO) |
| 244 | logger.info("boo %s", "arg") |
| 245 | assert caplog.records[0].levelname == "INFO" |
| 246 | assert caplog.records[0].msg == "boo %s" |
| 247 | assert "boo arg" in caplog.text |
| 248 | |
| 249 | |
| 250 | def test_messages(caplog: pytest.LogCaptureFixture) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…