Skip to content

Commit 360065b

Browse files
committed
test: only run new test on pydantic v2
1 parent b22c8d2 commit 360065b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_pydantic/test_generic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def test_invalid_generics(data_type, data_value, error_loc, error_type):
7474
assert error_dict["type"] == error_type
7575

7676

77+
@needs_pydanticv2
7778
def test_generic_json_schema():
7879
schema = Response[DataModel].model_json_schema()
7980
# Should have referenced the schema in $defs

0 commit comments

Comments
 (0)