Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Oct 15, 2020
1 parent e1e6af8 commit e76f23f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_session(mocker, content_type):
repository_version='1.0',
)
call, = spy.call_args_list
assert call.kwargs["timeout"] == 3.14
assert call[1]["timeout"] == 3.14
spy.reset_mock()
assert simple.get_project_url('IN.PLACE') \
== 'https://test.nil/simple/in-place/'
Expand Down Expand Up @@ -122,7 +122,7 @@ def test_session(mocker, content_type):
repository_version='1.0',
)
call, = spy.call_args_list
assert call.kwargs["timeout"] == 2.718
assert call[1]["timeout"] == 2.718
assert simple.get_project_page('nonexistent') is None

@responses.activate
Expand Down Expand Up @@ -331,4 +331,4 @@ def test_stream_project_names(mocker):
assert list(simple.stream_project_names(timeout=1.618)) \
== ['in_place', 'foo', 'BAR']
call, = spy.call_args_list
assert call.kwargs["timeout"] == 1.618
assert call[1]["timeout"] == 1.618

0 comments on commit e76f23f

Please sign in to comment.