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

Method until_is

src/py/reactpy/reactpy/testing/common.py:72–84  ·  view source on GitHub ↗

Wait until the result is identical 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

70 raise asyncio.TimeoutError(msg)
71
72 async def until_is(
73 self,
74 right: _R,
75 timeout: float = REACTPY_TESTING_DEFAULT_TIMEOUT.current,
76 delay: float = _DEFAULT_POLL_DELAY,
77 ) -> None:
78 """Wait until the result is identical to the given value"""
79 return await self.until(
80 lambda left: left is right,
81 timeout,
82 delay,
83 f"value to be identical to {right!r}",
84 )
85
86 async def until_equals(
87 self,

Callers 3

test_script_from_srcFunction · 0.80
test_module_from_fileFunction · 0.80

Calls 1

untilMethod · 0.95

Tested by 3

test_script_from_srcFunction · 0.64
test_module_from_fileFunction · 0.64