Skip to content

Commit

Permalink
Migrate to model_validate_json() from deprecated parse_raw() in t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
esciara committed Nov 25, 2023
1 parent c2ff194 commit cab6d6d
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 @@ -81,7 +81,7 @@ def test_serialize_deserialize_operations() -> None:
base_obj = ModelWithWhereFilter(where_filter=PydanticWhereFilter(where_sql_template=__BOOLEAN_EXPRESSION__))

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

assert deserialized == base_obj

Expand Down

0 comments on commit cab6d6d

Please sign in to comment.