Skip to content

Commit 2c1ea37

Browse files
committed
Adding a test showing how the request timeout can be modified.
1 parent fc70b49 commit 2c1ea37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/test_request.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,9 @@ def it_needs_encoding_or_apparent_encoding(self):
298298
mock_method.return_value = resp
299299
with assert_raises(TypeError):
300300
Request.send_request_to_path('GET', 'events', ('x', 'y'), resp)
301+
302+
@istest
303+
def it_allows_the_timeout_to_be_changed(self):
304+
eq_(10, intercom.Request.timeout)
305+
intercom.Request.timeout = 3
306+
eq_(3, intercom.Request.timeout)

0 commit comments

Comments
 (0)