From c524dd41e0caa45175394290ab8e6d0ff67dab2f Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 12 Feb 2026 16:46:01 +0100 Subject: [PATCH] Fix test to send empty string instead of empty file --- tests/test_optional_file_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_optional_file_list.py b/tests/test_optional_file_list.py index f237346ee..0e11a262a 100644 --- a/tests/test_optional_file_list.py +++ b/tests/test_optional_file_list.py @@ -32,7 +32,7 @@ def test_optional_bytes_list_send_empty_str(): client = TestClient(app) response = client.post( "/files", - files=[("files", b"")], + data={"files": ""}, ) assert response.status_code == 200 assert response.json() == {"files_count": 1, "sizes": [0]}