(self, text, timeout=2)
| 56 | self.caplog.set_level(level, logger) |
| 57 | |
| 58 | async def await_log(self, text, timeout=2): |
| 59 | await asyncio.sleep(0) |
| 60 | for i in range(int(timeout / 0.01)): |
| 61 | if text in self.caplog.text: |
| 62 | return True |
| 63 | else: |
| 64 | await asyncio.sleep(0.01) |
| 65 | raise AssertionError(f"Did not find {text!r} in log:\n{self.caplog.text}") |
| 66 | |
| 67 | def clear(self) -> None: |
| 68 | self.caplog.clear() |
no outgoing calls
no test coverage detected