Skip to content

Commit

Permalink
✅ Fix data in test for tuples with new client
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Nov 13, 2022
1 parent 175022a commit ce5b5f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_tuples.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@ def test_tuple_form_valid():


def test_tuple_form_invalid():
response = client.post(
"/tuple-form/", content=[("values", "1"), ("values", "2"), ("values", "3")]
)
response = client.post("/tuple-form/", data={"values": ("1", "2", "3")})
assert response.status_code == 422, response.text

response = client.post("/tuple-form/", content=[("values", "1")])
response = client.post("/tuple-form/", data={"values": ("1")})
assert response.status_code == 422, response.text

0 comments on commit ce5b5f7

Please sign in to comment.