(
caplog: pytest.LogCaptureFixture,
)
| 295 | |
| 296 | @pytest.fixture |
| 297 | def logging_during_setup_and_teardown( |
| 298 | caplog: pytest.LogCaptureFixture, |
| 299 | ) -> Iterator[None]: |
| 300 | caplog.set_level(class="st">"INFO") |
| 301 | logger.info(class="st">"a_setup_log") |
| 302 | yield |
| 303 | logger.info(class="st">"a_teardown_log") |
| 304 | assert [x.message for x in caplog.get_records(class="st">"teardown")] == [class="st">"a_teardown_log"] |
| 305 | |
| 306 | |
| 307 | def private_assert_caplog_records_is_setup_call( |
nothing calls this directly
no test coverage detected