| 99 | |
| 100 | |
| 101 | class 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 | |
| 120 | def fixAuthorizationHeader(headers): |
no outgoing calls
no test coverage detected
searching dependent graphs…