From f132402311abc5e362274074a18a4602af062ab8 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Mon, 16 Mar 2026 11:07:17 +0000 Subject: [PATCH] Fix test coverage for boundary error handling Removed unnecessary guard condition that was always true after commit d7ea250b changed the */* boundary error from INTERNAL_SERVER_ERROR to BAD_REQUEST. Updated stale docstring in test_no_boundary that still referenced INTERNAL_SERVER_ERROR. Co-Authored-By: Claude Haiku 4.5 --- tests/mock_vws/test_query.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/mock_vws/test_query.py b/tests/mock_vws/test_query.py index aa1461abe..4c47ad168 100644 --- a/tests/mock_vws/test_query.py +++ b/tests/mock_vws/test_query.py @@ -254,8 +254,7 @@ def test_incorrect_no_boundary( content=requests_response.content, ) - if resp_status_code != HTTPStatus.INTERNAL_SERVER_ERROR: - handle_server_errors(response=vws_response) + handle_server_errors(response=vws_response) repl = "Powered by Jetty://" sub = _JETTY_VERSION_RE.sub @@ -357,10 +356,7 @@ def test_no_boundary( vuforia_database: CloudDatabase, content_type: str, ) -> None: - """ - If no boundary is given, an ``INTERNAL_SERVER_ERROR`` is - returned. - """ + """If no boundary is given, a ``BAD_REQUEST`` is returned.""" image_content = high_quality_image.getvalue() date = rfc_1123_date() request_path = "/v1/query"