Skip to content

Commit

Permalink
pt 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Apr 12, 2024
1 parent 01028c5 commit 50b8e32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integrate_openapi/validate_request_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ async def test_010__invalid(server: Callable[[], RestClient]) -> None:
# missing arg(s)
await rc.request("GET", "/foo/args")
assert e.value.response.status_code == 400
with pytest.raises(requests.HTTPError) as e:
# extra arg(s)
await rc.request("GET", "/foo/args", {"name": "dwayne", "car": "vroom"})
print(e.value)
# with pytest.raises(requests.HTTPError) as e:
# # extra arg(s) -- NOTE: THESE ARE ACTUALLY OK
# await rc.request("GET", "/foo/args", {"name": "dwayne", "car": "vroom"})
with pytest.raises(requests.HTTPError) as e:
# bad type
await rc.request("GET", "/foo/args", {"name": 123})
Expand Down

0 comments on commit 50b8e32

Please sign in to comment.