Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jan 10, 2025
1 parent 383bfb2 commit e959d17
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/models/graph_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,8 @@ def test_rules_for_appending(self):
)
collector_graph.save()

def test_node_create(self):
self.test_graph.append_node()
self.test_graph.save()

node = self.test_graph.node_set.select_related("nodegroup").first()
self.assertEqual(node.nodegroup.grouping_node, node)
def test_node_creation_sets_grouping_node(self):
self.assertEqual(self.rootNode.nodegroup.grouping_node, self.rootNode)

def test_node_update(self):
"""
Expand Down

0 comments on commit e959d17

Please sign in to comment.