(
wait_cond, timeout, poll=0.1, msg="expected condition met within timeout"
)
| 33 | |
| 34 | |
| 35 | def until_not( |
| 36 | wait_cond, timeout, poll=0.1, msg="expected condition met within timeout" |
| 37 | ): # noqa: C0330 |
| 38 | res = wait_cond() |
| 39 | logger.debug( |
| 40 | "start wait.until_not method, timeout, poll => %s %s %s", |
| 41 | wait_cond, |
| 42 | timeout, |
| 43 | poll, |
| 44 | ) |
| 45 | end_time = time.time() + timeout |
| 46 | while res: |
| 47 | if time.time() > end_time: |
| 48 | raise TestingTimeoutError(msg) |
| 49 | time.sleep(poll) |
| 50 | res = wait_cond() |
| 51 | logger.debug("poll => %s", time.time()) |
| 52 | |
| 53 | return res |
| 54 | |
| 55 | |
| 56 | class contains_text: |
nothing calls this directly
no test coverage detected
searching dependent graphs…