Skip to content

Commit 83346e9

Browse files
committed
Updated assertion in 'test_get_visit_list' to use Pydantic v2 method
1 parent 0661937 commit 83346e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/client/tui/test_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ def test_get_visit_list(
6363

6464
# Check that expected outputs are correct (order-sensitive)
6565
for v, visit in enumerate(visits):
66-
assert visit.dict() == Visit.parse_obj(example_visits[v]).dict()
66+
assert (
67+
visit.model_dump() == Visit.model_validate(example_visits[v]).model_dump()
68+
)

0 commit comments

Comments
 (0)