Skip to content

Commit

Permalink
include missed test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfilik committed May 15, 2024
1 parent b39faa5 commit 37e852d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_read_shapes(
"/shapes/", params={"path": str(test_data_path), "subpath": subpath}
)
assert response.status_code == 200
actual_shape = DataTree[ShapeMetadata].parse_obj(response.json())
actual_shape = DataTree[ShapeMetadata].model_validate(response.json())
assert actual_shape == shape


Expand All @@ -56,7 +56,7 @@ def test_read_tree(
"/tree/", params={"path": str(test_data_path), "subpath": subpath}
)
assert response.status_code == 200
actual_tree = DataTree[MetadataNode].parse_obj(response.json())
actual_tree = DataTree[MetadataNode].model_validate(response.json())
assert actual_tree == tree


Expand All @@ -68,7 +68,7 @@ def test_read_info(
"/info/", params={"path": str(test_data_path), "subpath": subpath}
)
assert response.status_code == 200
actual_metadata = MetadataNode.parse_obj(response.json())
actual_metadata = MetadataNode.model_validate(response.json())
assert actual_metadata == metadata


Expand All @@ -80,7 +80,7 @@ def test_read_search(
"/search/", params={"path": str(test_data_path), "subpath": subpath}
)
assert response.status_code == 200
actual_children = NodeChildren.parse_obj(response.json())
actual_children = NodeChildren.model_validate(response.json())
assert actual_children == children


Expand Down

0 comments on commit 37e852d

Please sign in to comment.