We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd57dc4 + 2175502 commit 56256e4Copy full SHA for 56256e4
tests/test_throttled_http_client.py
@@ -11,19 +11,13 @@
11
logging.basicConfig(level=logging.DEBUG)
12
13
14
-class DummyHttpResponse(MinimalResponse):
15
- def __init__(self, headers=None, **kwargs):
16
- self.headers = {} if headers is None else headers
17
- super(DummyHttpResponse, self).__init__(**kwargs)
18
-
19
20
class DummyHttpClient(object):
21
def __init__(self, status_code=None, response_headers=None):
22
self._status_code = status_code
23
self._response_headers = response_headers
24
25
def _build_dummy_response(self):
26
- return DummyHttpResponse(
+ return MinimalResponse(
27
status_code=self._status_code,
28
headers=self._response_headers,
29
text=random(), # So that we'd know whether a new response is received
0 commit comments