Messages the middleware logged at ERROR — refusals surfaced rather than retried.
(caplog: pytest.LogCaptureFixture)
| 39 | |
| 40 | |
| 41 | def error_logs(caplog: pytest.LogCaptureFixture) -> list[str]: |
| 42 | """Messages the middleware logged at ERROR — refusals surfaced rather than retried.""" |
| 43 | return [ |
| 44 | record.getMessage() |
| 45 | for record in caplog.records |
| 46 | if record.name == LOGGER_NAME and record.levelno >= logging.ERROR |
| 47 | ] |
| 48 | |
| 49 | |
| 50 | FIXTURES = Path(__file__).parent.parent / "fixtures" / "fable-fallback" |
no outgoing calls
no test coverage detected