MCPcopy Create free account
hub / github.com/StackStorm/st2 / __init__

Method __init__

st2tests/st2tests/http.py:21–24  ·  view source on GitHub ↗
(self, text, status_code, reason)

Source from the content-addressed store, hash-verified

19
20class FakeResponse(object):
21 def __init__(self, text, status_code, reason):
22 self.text = text
23 self.status_code = status_code
24 self.reason = reason
25
26 def json(self):
27 return json.loads(self.text)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected