Skip to content

Commit

Permalink
Fix downloader test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Jan 30, 2020
1 parent a5102d2 commit d675d64
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ python-dateutil==2.8.1
ratelimit==2.2.1
six==1.14.0
sshtunnel==0.1.5
tabulator==1.31.2
tabulator==1.32.0
typing==3.7.4.1
yamlloader==0.5.5
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'ratelimit',
'six>=1.14.0',
'sshtunnel',
'tabulator>=1.31.2',
'tabulator>=1.32.0',
'typing',
'yamlloader'
]
Expand Down
2 changes: 1 addition & 1 deletion src/hdx/utilities/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.9
2.1.0
2 changes: 1 addition & 1 deletion tests/hdx/utilities/test_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def test_setup_stream(self, fixtureurl, fixturenotexistsurl, getfixtureurl, post
with Download() as downloader:
downloader.setup(postfixtureurl, post=True)
headers = downloader.response.headers
assert bool(re.match(r'2\d\d', headers['Content-Length'])) is True
assert bool(re.match(r'4\d\d', headers['Content-Length'])) is True
downloader.setup('%s?id=10&lala=a' % getfixtureurl, post=False,
parameters=OrderedDict([('b', '4'), ('d', '3')]))
assert downloader.get_json()['args'] == OrderedDict([('b', '4'), ('d', '3'), ('id', '10'), ('lala', 'a')])
Expand Down

0 comments on commit d675d64

Please sign in to comment.