Skip to content

Commit

Permalink
replaced deprecated json function with model_dump_json
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Staar <[email protected]>
  • Loading branch information
PeterStaar-IBM committed Aug 26, 2024
1 parent 24c0b9d commit 08364df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_toplevel_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_conversions():
if GENERATE:

with open(json_path, "w") as fw:
fw.write(doc_pred_json.json())
fw.write(doc_pred_json.model_dump_json()())

with open(md_path, "w") as fw:
fw.write(doc_pred_md)
Expand All @@ -114,7 +114,7 @@ def test_conversions():
with open(md_path, "r") as fr:
doc_true_md = "".join(fr.readlines())

doc_ = json.loads(doc_pred_json.json())
doc_ = json.loads(doc_pred_json.model_dump_json())
# print(json.dumps(doc_, indent=2))

assert verify_json(
Expand Down

0 comments on commit 08364df

Please sign in to comment.