mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 08:29:59 +00:00
Update tests
This commit is contained in:
parent
4eca0495a4
commit
7deb359886
@ -208,7 +208,7 @@ def test_extract_file(
|
||||
"/files/download_url",
|
||||
data={
|
||||
"destination": "disk_images",
|
||||
"images_subdir": "/",
|
||||
"images_subdir": "",
|
||||
"url": url,
|
||||
},
|
||||
)
|
||||
@ -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:
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user