Skip to content

Commit

Permalink
Migrate to model_dump_json() from deprecated json() in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
esciara committed Nov 25, 2023
1 parent 6684bcd commit c2ff194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/parsing/test_where_filter_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_serialize_deserialize_operations() -> None:
"""
base_obj = ModelWithWhereFilter(where_filter=PydanticWhereFilter(where_sql_template=__BOOLEAN_EXPRESSION__))

serialized = base_obj.json()
serialized = base_obj.model_dump_json()
deserialized = ModelWithWhereFilter.parse_raw(serialized)

assert deserialized == base_obj
Expand Down

0 comments on commit c2ff194

Please sign in to comment.