From cab6d6d14daf0c0e2ac4614a63f49836c70c01a4 Mon Sep 17 00:00:00 2001 From: Emmanuel Sciara Date: Fri, 24 Nov 2023 23:17:23 +0100 Subject: [PATCH] Migrate to `model_validate_json()` from deprecated `parse_raw()` in tests --- tests/parsing/test_where_filter_parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/parsing/test_where_filter_parsing.py b/tests/parsing/test_where_filter_parsing.py index 767647bf..b50838e0 100644 --- a/tests/parsing/test_where_filter_parsing.py +++ b/tests/parsing/test_where_filter_parsing.py @@ -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