MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / AlwaysErrorProxy

Class AlwaysErrorProxy

tests/test_utils/test_proxy.py:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26def test_isinstance_does_not_error() -> None:
27 class AlwaysErrorProxy(LazyProxy[Any]):
28 @override
29 def __load__(self) -> Any:
30 raise RuntimeError("Mocking missing dependency")
31
32 proxy = AlwaysErrorProxy()
33 assert not isinstance(proxy, dict)

Callers 1

Calls

no outgoing calls

Tested by 1