Browse Source

more generic deprecation warning

pull/15101/head
svlandeg 4 months ago
parent
commit
49cb3869dc
  1. 8
      tests/test_jsonable_encoder.py

8
tests/test_jsonable_encoder.py

@ -313,15 +313,11 @@ def test_encode_pydantic_undefined():
assert jsonable_encoder(data) == {"value": None} assert jsonable_encoder(data) == {"value": None}
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
@pytest.mark.parametrize( @pytest.mark.parametrize(
"module_path", "module_path",
[ [
pytest.param( pytest.param("pydantic.color"),
"pydantic.color",
marks=pytest.mark.filterwarnings(
"ignore::pydantic.warnings.PydanticDeprecatedSince20"
),
),
pytest.param("pydantic_extra_types.color"), pytest.param("pydantic_extra_types.color"),
], ],
) )

Loading…
Cancel
Save