(caplog)
| 142 | |
| 143 | |
| 144 | def test_clear(caplog): |
| 145 | caplog.set_level(logging.INFO) |
| 146 | logger.info("bū") |
| 147 | assert len(caplog.records) |
| 148 | assert caplog.text |
| 149 | caplog.clear() |
| 150 | assert not len(caplog.records) |
| 151 | assert not caplog.text |
| 152 | |
| 153 | |
| 154 | @pytest.fixture |