(path: Path, expected: str, timeout: float = 5.0)
| 656 | |
| 657 | |
| 658 | async def wait_for_content(path: Path, expected: str, timeout: float = 5.0) -> None: |
| 659 | async def predicate(): |
| 660 | return path.exists() and expected in path.read_text(encoding="utf-8") |
| 661 | |
| 662 | await wait_for_predicate(predicate, timeout=timeout) |
| 663 | |
| 664 | |
| 665 | async def wait_for_predicate(predicate, timeout: float = 5.0) -> None: |
no test coverage detected
searching dependent graphs…