MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _request

Method _request

tests/test_registration_engine.py:43–58  ·  view source on GitHub ↗
(self, method, url, **kwargs)

Source from the content-addressed store, hash-verified

41 return None
42
43 def _request(self, method, url, **kwargs):
44 self.calls.append({
45 "method": method,
46 "url": url,
47 "kwargs": kwargs,
48 })
49 if not self.steps:
50 raise AssertionError(f"unexpected request: {method} {url}")
51 expected_method, expected_url, response = self.steps.pop(0)
52 assert method == expected_method
53 assert url == expected_url
54 if callable(response):
55 response = response(self)
56 if response.on_return:
57 response.on_return(self)
58 return response
59
60
61class FakeEmailService(BaseEmailService):

Callers 3

getMethod · 0.95
postMethod · 0.95
requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected