MCPcopy Create free account
hub / github.com/CiscoPSIRT/openVulnQuery / __init__

Method __init__

tests/test_query_client.py:153–156  ·  view source on GitHub ↗
(self, url=None, json_in=None, status_code=None)

Source from the content-addressed store, hash-verified

151def mocked_req_post(*args, **kwargs):
152 class MockResponse:
153 def __init__(self, url=None, json_in=None, status_code=None):
154 self.url = url
155 self.json_in = json_in
156 self.status_code = status_code
157
158 def json(self):
159 return self.json_in

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected