Wait until the result is equal to the given value
(
self,
right: _R,
timeout: float = REACTPY_TESTING_DEFAULT_TIMEOUT.current,
delay: float = _DEFAULT_POLL_DELAY,
)
| 84 | ) |
| 85 | |
| 86 | async def until_equals( |
| 87 | self, |
| 88 | right: _R, |
| 89 | timeout: float = REACTPY_TESTING_DEFAULT_TIMEOUT.current, |
| 90 | delay: float = _DEFAULT_POLL_DELAY, |
| 91 | ) -> None: |
| 92 | """Wait until the result is equal to the given value""" |
| 93 | return await self.until( |
| 94 | lambda left: left == right, |
| 95 | timeout, |
| 96 | delay, |
| 97 | f"value to equal {right!r}", |
| 98 | ) |
| 99 | |
| 100 | |
| 101 | class HookCatcher: |