Dave Pearson
2023-01-10 15:28:17 +00:00
parent 728acc27c0
commit 494c63a72b
2 changed files with 3 additions and 3 deletions

View File

@@ -12,5 +12,5 @@ def test_get_tree_node_by_id() -> None:
assert tree.get_node_by_id(tree.root.id).id == tree.root.id
assert tree.get_node_by_id(child.id).id == child.id
assert tree.get_node_by_id(grandchild.id).id == grandchild.id
with pytest.raises(Tree.UnknownID):
with pytest.raises(Tree.UnknownNodeID):
tree.get_node_by_id(cast(NodeID, grandchild.id + 1000))