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}
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
@pytest.mark.parametrize(
"module_path",
[
pytest.param(
"pydantic.color",
marks=pytest.mark.filterwarnings(
"ignore::pydantic.warnings.PydanticDeprecatedSince20"
),
),
pytest.param("pydantic.color"),
pytest.param("pydantic_extra_types.color"),
],
)

Loading…
Cancel
Save