Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim committed Sep 1, 2020
1 parent 626908c commit c1c62fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,23 +216,21 @@ async def test_download_directory_size_limit(fetch, serverapp, root_dir):
await fetch("directories", dir_path, method="GET", params=params)
assert expected_http_error(e, 413)


async def test_download_wrong_archive_format(fetch, serverapp, root_dir):

dir_path, file_lists = make_fake_folder(root_dir)
archive_token = 59487596
archive_format = "a_format_that_does_not_exist"
mode = "r"


params = dict(
archiveToken=archive_token,
archiveFormat=archive_format,
)
params = dict(archiveToken=archive_token, archiveFormat=archive_format)

with pytest.raises(tornado.httpclient.HTTPClientError) as e:
await fetch("directories", dir_path, method="GET", params=params)
assert expected_http_error(e, 404)


async def test_extract_directory(fetch, serverapp, root_dir):

format_mode = {
Expand Down

0 comments on commit c1c62fb

Please sign in to comment.