MCPcopy Create free account
hub / github.com/Vinyzu/Botright / ExpectResponse

Class ExpectResponse

tests/server.py:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32class ExpectResponse(Generic[T]):
33 def __init__(self) -> None:
34 self._value: T
35
36 @property
37 def value(self) -> T:
38 if not hasattr(self, "_value"):
39 raise ValueError("no received value")
40 return self._value
41
42
43class TestServerRequest(http.Request):

Callers 1

expect_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected