MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / FakeHttpResponse

Class FakeHttpResponse

tests/Framework.py:101–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101class FakeHttpResponse:
102 def __init__(self, status, headers, output):
103 self.status = status
104 self.__headers = headers
105 self.__output = output
106
107 def getheaders(self):
108 return self.__headers
109
110 def read(self):
111 return self.__output
112
113 def iter_content(self, chunk_size=1):
114 return iter([self.__output[i : i + chunk_size] for i in range(0, len(self.__output), chunk_size)])
115
116 def raise_for_status(self):
117 pass
118
119
120def fixAuthorizationHeader(headers):

Callers 1

getresponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…