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

Method __init__

st2client/tests/base.py:46–52  ·  view source on GitHub ↗
(self, text, status_code, reason, *args)

Source from the content-addressed store, hash-verified

44
45class FakeResponse(object):
46 def __init__(self, text, status_code, reason, *args):
47 self.text = text
48 self.content = text
49 self.status_code = status_code
50 self.reason = reason
51 if args:
52 self.headers = args[0]
53
54 def json(self):
55 return json.loads(self.text)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected