Skip to content

Commit

Permalink
add test of parents of child nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
acwhite211 committed Mar 18, 2024
1 parent 1ff3385 commit 77223ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions specifyweb/specify/test_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ def test_add_ranks_without_defaults(self):
self.assertEqual('3D', d3.fullname)
if milky_way.fullname is not None:
self.assertEqual('Milky Way', milky_way.fullname)

# Test parents of child nodes
self.assertEqual(cfc.id, c137.parent.id)
self.assertEqual(c137.id, d3.parent.id)
self.assertEqual(d3.id, milky_way.parent.id)


def test_add_ranks_with_defaults(self):
Expand Down

0 comments on commit 77223ec

Please sign in to comment.