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