0003-tests-add-timeout-to-requests-call-68469.patch
tests/test_requests.py | ||
---|---|---|
452 | 452 |
return response(200, 'coin', headers={'Error Webservice': b'\xe9'}, request=request) |
453 | 453 | |
454 | 454 |
with HTTMock(bad_headers): |
455 |
resp = requests.get('https://example.com/') |
|
455 |
resp = requests.get('https://example.com/', timeout=10)
|
|
456 | 456 |
caplog.set_level(logging.DEBUG) |
457 | 457 |
assert len(caplog.records) == 0 |
458 | 458 |
log_http_request(logging.getLogger(), resp.request, resp) |
459 |
- |