From 50b8e32186acf86ac9730b9981f54321f9d6bd5b Mon Sep 17 00:00:00 2001 From: ric-evans Date: Fri, 12 Apr 2024 16:14:50 -0500 Subject: [PATCH] pt 4 --- tests/integrate_openapi/validate_request_test.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integrate_openapi/validate_request_test.py b/tests/integrate_openapi/validate_request_test.py index d55db307..ba62ac15 100644 --- a/tests/integrate_openapi/validate_request_test.py +++ b/tests/integrate_openapi/validate_request_test.py @@ -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})