Skip to content

Commit 56256e4

Browse files
committed
Merge branch 'http-interface-polish' into dev
2 parents fd57dc4 + 2175502 commit 56256e4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/test_throttled_http_client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,13 @@
1111
logging.basicConfig(level=logging.DEBUG)
1212

1313

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-
2014
class DummyHttpClient(object):
2115
def __init__(self, status_code=None, response_headers=None):
2216
self._status_code = status_code
2317
self._response_headers = response_headers
2418

2519
def _build_dummy_response(self):
26-
return DummyHttpResponse(
20+
return MinimalResponse(
2721
status_code=self._status_code,
2822
headers=self._response_headers,
2923
text=random(), # So that we'd know whether a new response is received

0 commit comments

Comments
 (0)