Skip to content

Commit

Permalink
test: swap deprecated model.dict for model.model_dump
Browse files Browse the repository at this point in the history
model.dict is deprecated, model.model_dump should be used instead,
else a warning is emitted.
See https://docs.pydantic.dev/latest/concepts/serialization/#modelmodel_dump.

Closes: #70.
  • Loading branch information
lu-pl committed Aug 28, 2024
1 parent 0b1998f commit ae6aece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_instantiate_model_from_kwargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ def test_explicit_sparql_binding_allocation():

model = instantiate_model_from_kwargs(Person, **bindings)

assert expected == model.dict()
assert expected == model.model_dump()

0 comments on commit ae6aece

Please sign in to comment.