mirror of https://github.com/tiangolo/fastapi.git
Fix test to send empty string instead of empty file
This commit is contained in:
parent
444dd089d8
commit
c524dd41e0
|
|
@ -32,7 +32,7 @@ def test_optional_bytes_list_send_empty_str():
|
||||||
client = TestClient(app)
|
client = TestClient(app)
|
||||||
response = client.post(
|
response = client.post(
|
||||||
"/files",
|
"/files",
|
||||||
files=[("files", b"")],
|
data={"files": ""},
|
||||||
)
|
)
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
assert response.json() == {"files_count": 1, "sizes": [0]}
|
assert response.json() == {"files_count": 1, "sizes": [0]}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue