Skip to content

Commit

Permalink
Minor fixes for codestyle for python lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abhamra committed Oct 4, 2023
1 parent 8441cb0 commit a6e5ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rustworkx_tests/digraph/test_clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_clear(self):
node_a = dag.add_node("a")
node_b = dag.add_child(node_a, "b", {"a": 1})
node_c = dag.add_child(node_a, "c", {"a": 2})
dag.clear() # clear nodes and edges
dag.clear()
self.assertEqual(dag.num_nodes(), 0)
self.assertEqual(dag.num_edges(), 0)
self.assertEqual(dag.nodes(), [])
Expand All @@ -33,7 +33,7 @@ def test_clear_edges(self):
node_a = dag.add_node("a")
node_b = dag.add_child(node_a, "b", {"a": 1})
node_c = dag.add_child(node_a, "c", {"a": 2})
dag.clear_edges();
dag.clear_edges()
self.assertEqual(dag.num_nodes(), 3)
self.assertEqual(dag.num_edges(), 0)
self.assertEqual(dag.nodes(), ["a", "b", "c"])
Expand Down

0 comments on commit a6e5ae5

Please sign in to comment.