From 7f74f0036da72fa09e5a19dd737894ba80cae07b Mon Sep 17 00:00:00 2001 From: nanglo123 Date: Thu, 12 Sep 2024 09:48:07 -0400 Subject: [PATCH] Update deprecated json method in test --- tests/test_model_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_model_api.py b/tests/test_model_api.py index c799cd8f..4aa65425 100644 --- a/tests/test_model_api.py +++ b/tests/test_model_api.py @@ -282,7 +282,7 @@ def test_stratify_observable_api(self): structure=[], cartesian_control=True) - query_json = {"template_model": json.loads(tm.json())} + query_json = {"template_model": json.loads(tm.model_dump_json())} query_json.update(strata_options) response = self.client.post("/api/stratify", json=query_json)