From 48b35bb0bc8741bc8549fc4dc89cb58c61b780b6 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Thu, 24 Sep 2026 18:26:24 +0200 Subject: [PATCH] work on upload restrictions --- tests/test_api_assets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api_assets.py b/tests/test_api_assets.py index 7be82545..cd5a1f9e 100644 --- a/tests/test_api_assets.py +++ b/tests/test_api_assets.py @@ -153,10 +153,10 @@ def test_upload_assets(test_client : TestClient) -> None: 'Authorization': 'Bearer ' + access_token }, files = { - 'file': ('invalid.txt', 'invalid'.encode(), 'text/plain') + 'file': ('invalid', 'invalid'.encode()) }) - assert upload_response.status_code == 415 + assert upload_response.status_code == 400 state_manager.init_item('api_security_strategy', 'strict')