Revamp the upload

This commit is contained in:
henryruhs
2026-01-17 10:50:26 +01:00
parent 936d3957ec
commit 4ba6f7643e
6 changed files with 61 additions and 86 deletions
+2 -2
View File
@@ -128,7 +128,7 @@ def test_upload_target_asset(test_client : TestClient) -> None:
})
assert upload_response.status_code == 201
assert upload_response.json().get('asset_id')
assert upload_response.json().get('asset_ids')
def test_upload_unsupported_format(test_client : TestClient) -> None:
@@ -143,7 +143,7 @@ def test_upload_unsupported_format(test_client : TestClient) -> None:
'Authorization': 'Bearer ' + create_session_body.get('access_token')
}, files =
{
'file': ('test.txt', b'invalid content', 'text/plain')
'file': ('test.txt', b'invalid', 'text/plain')
})
assert upload_response.status_code == 400