MCPcopy Index your code
hub / github.com/reactive-python/reactpy / until_equals

Method until_equals

src/py/reactpy/reactpy/testing/common.py:86–98  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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
101class HookCatcher:

Calls 1

untilMethod · 0.95