Browse Source

Tweak test to filter warning

pull/14569/head
Sebastián Ramírez 7 months ago
parent
commit
824edd3681
  1. 10
      tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py

10
tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py

@ -13,7 +13,15 @@ from ...utils import needs_py310
pytest.param("tutorial004_py310", marks=needs_py310),
pytest.param("tutorial004_an_py39"),
pytest.param("tutorial004_an_py310", marks=needs_py310),
pytest.param("tutorial004_regex_an_py310", marks=needs_py310),
pytest.param(
"tutorial004_regex_an_py310",
marks=(
needs_py310,
pytest.mark.filterwarnings(
"ignore:`regex` has been deprecated, please use `pattern` instead:DeprecationWarning"
),
),
),
],
)
def get_client(request: pytest.FixtureRequest):

Loading…
Cancel
Save