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

Method __init__

tests/test_authorization.py:33–36  ·  view source on GitHub ↗
(self, url=None, json_in=None, status_code=None)

Source from the content-addressed store, hash-verified

31def mocked_req_post(*args, **kwargs):
32 class MockResponse:
33 def __init__(self, url=None, json_in=None, status_code=None):
34 self.url = url
35 self.json_in = json_in
36 self.status_code = status_code
37
38 def json(self):
39 return self.json_in

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected