MCPcopy Create free account
hub / github.com/livekit/agents / is_virtual_time

Function is_virtual_time

tests/virtual_time.py:96–103  ·  view source on GitHub ↗
(node: pytest.Item)

Source from the content-addressed store, hash-verified

94
95
96def is_virtual_time(node: pytest.Item) -> bool:
97 # `--real-time` disables virtual time globally; the `real_time` marker opts out a single test.
98 if node.config.getoption("--real-time", default=False):
99 return False
100 return (
101 node.get_closest_marker("virtual_time") is not None
102 and node.get_closest_marker("real_time") is None
103 )
104
105
106def _to_plain(obj: Any) -> Any:

Callers 2

event_loop_policyFunction · 0.85
_virtual_wall_clockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected