MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / DummyResponse

Class DummyResponse

tests/unit/cli/test_registry_command.py:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 fake_requests = MagicMock()
83
84 class DummyResponse:
85 status_code = 200
86 headers = {"content-length": "4"}
87 content = b"data"
88
89 def raise_for_status(self):
90 pass
91
92 def iter_content(self, chunk_size=8192):
93 yield b"data"
94
95 fake_requests.get.return_value = DummyResponse()
96 bundle = {

Calls

no outgoing calls