MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

web_programming/test_fetch_github_info.py:10–12  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

8def test_fetch_github_info(monkeypatch):
9 class FakeResponse:
10 def __init__(self, content) -> None:
11 assert isinstance(content, (bytes, str))
12 self.content = content
13
14 def json(self):
15 return json.loads(self.content)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected