Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Nov 4, 2023
1 parent 0504905 commit 7edf56b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/web/tests/api/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_extract_file(
"/files/download_url",
data={
"destination": "disk_images",
"images_subdir": "/",
"images_subdir": "",
"url": url,
},
)
Expand Down Expand Up @@ -335,7 +335,7 @@ def test_download_properties(http_client, list_files, delete_file):
def test_download_url_to_dir(env, httpserver, http_client, list_files, delete_file):
file_name = str(uuid.uuid4())
http_path = f"/images/{file_name}"
subdir = "/"
subdir = ""
url = httpserver.url_for(http_path)

with open("tests/assets/test_image.hds", mode="rb") as file:
Expand All @@ -362,7 +362,7 @@ def test_download_url_to_dir(env, httpserver, http_client, list_files, delete_fi
assert file_name in list_files()
assert (
response_data["messages"][0]["message"]
== f"Downloaded file to {env['images_dir']}{subdir}{file_name}"
== f"Downloaded file to {env['images_dir']}/{subdir}{file_name}"
)

# Cleanup
Expand Down

0 comments on commit 7edf56b

Please sign in to comment.