feat(adapters): print statement removal (#53)
* adapters: print statement removal Signed-off-by: Mateusz Susik <mateusz.susik@sigmoidal.io> * test fix - read timeout added Signed-off-by: Mateusz Susik <mateusz.susik@sigmoidal.io>
This commit is contained in:
parent
2c85a4a976
commit
004f40ceb8
@ -13,5 +13,4 @@ class TimeoutAdapter(HTTPAdapter):
|
|||||||
|
|
||||||
def send(self, *args, **kwargs):
|
def send(self, *args, **kwargs):
|
||||||
kwargs['timeout'] = self.timeout
|
kwargs['timeout'] = self.timeout
|
||||||
print(self.timeout)
|
|
||||||
return super(TimeoutAdapter, self).send(*args, **kwargs)
|
return super(TimeoutAdapter, self).send(*args, **kwargs)
|
||||||
|
@ -119,7 +119,7 @@ def test_dest_not_in_supported_languages(translator):
|
|||||||
def test_connection_timeout():
|
def test_connection_timeout():
|
||||||
# Requests library specifies two timeouts: connection and read
|
# Requests library specifies two timeouts: connection and read
|
||||||
|
|
||||||
with raises(ConnectionError):
|
with raises((ConnectionError, ReadTimeout)):
|
||||||
"""If a number is passed to timeout parameter, both connection
|
"""If a number is passed to timeout parameter, both connection
|
||||||
and read timeouts will be set to it.
|
and read timeouts will be set to it.
|
||||||
Firstly, the connection timeout will fail.
|
Firstly, the connection timeout will fail.
|
||||||
|
Loading…
Reference in New Issue
Block a user