From e27b865418e1b341b03e81ed0bcc074bcd460b65 Mon Sep 17 00:00:00 2001 From: Arian Nasr Date: Thu, 28 May 2026 06:06:32 -0400 Subject: [PATCH] e2e(api): fix endpoint for uploading non-audio files in test Signed-off-by: Arian Nasr --- e2e/unit/api/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/unit/api/test_api.py b/e2e/unit/api/test_api.py index f470c58..a7c02dc 100644 --- a/e2e/unit/api/test_api.py +++ b/e2e/unit/api/test_api.py @@ -13,7 +13,7 @@ def test_api_ping(base_url): def test_api_upload_non_audio_file(base_url, upload_folder): files = {'file': ('test.txt', io.BytesIO(b'not an audio file'))} expected_filename = os.path.join(upload_folder, secure_filename('test.txt')) - response = requests.post(f'{base_url}/upload', files=files) + response = requests.post(f'{base_url}/', files=files) assert response.status_code == 400 assert "not allowed" in response.json().get("error", "") assert not os.path.exists(expected_filename)