From 93ac1baa7ecdfae798cf961005b3b306272c1a72 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 21:21:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_regex_deprecated_params.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_regex_deprecated_params.py b/tests/test_regex_deprecated_params.py index e04820775..ef8a8aaa0 100644 --- a/tests/test_regex_deprecated_params.py +++ b/tests/test_regex_deprecated_params.py @@ -70,14 +70,15 @@ def test_query_params_str_validations_item_query_nonregexquery(): ] } ) - + + @needs_py310 def test_query_params_str_validations_item_query_empty(): client = get_client() - response = client.get("/items/", params = {"q": ""}) + response = client.get("/items/", params={"q": ""}) assert response.status_code == 422 assert response.json() == IsDict( - { + { "detail": [ { "type": "string_pattern_mismatch", @@ -100,9 +101,9 @@ def test_query_params_str_validations_item_query_empty(): } ] } - ) + @needs_py310 def test_openapi_schema(): client = get_client()