Skip to content

Commit 2e2568b

Browse files
authored
Remove @needs_pydanticv2 decorator from tests
Removed the @needs_pydanticv2 decorator from test functions.
1 parent 124ff0f commit 2e2568b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/test_pydantic/test_generic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def test_valid_generics(data_type, data_value):
3333
assert Response[data_type](**response.model_dump()) == response
3434

3535

36-
@needs_pydanticv2
3736
@pytest.mark.parametrize(
3837
["data_type", "data_value", "error_loc", "error_type"],
3938
[
@@ -71,7 +70,6 @@ def test_invalid_generics(data_type, data_value, error_loc, error_type):
7170
assert error_dict["type"] == error_type
7271

7372

74-
@needs_pydanticv2
7573
def test_generic_json_schema():
7674
schema = Response[DataModel].model_json_schema()
7775
# Should have referenced the schema in $defs

0 commit comments

Comments
 (0)