Skip to content

Commit

Permalink
fixes for black
Browse files Browse the repository at this point in the history
  • Loading branch information
abhamra committed Oct 6, 2023
1 parent 7c35ee7 commit e6b807a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/rustworkx_tests/digraph/test_clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class TestClear(unittest.TestCase):
def test_clear(self):
dag = rustworkx.PyDAG()
node_a = dag.add_node("a")
node_b = dag.add_child(node_a, "b", {"a": 1}) # noqa: F841
node_c = dag.add_child(node_a, "c", {"a": 2}) # noqa: F841
node_b = dag.add_child(node_a, "b", {"a": 1}) # noqa: F841
node_c = dag.add_child(node_a, "c", {"a": 2}) # noqa: F841
dag.clear()
self.assertEqual(dag.num_nodes(), 0)
self.assertEqual(dag.num_edges(), 0)
Expand All @@ -44,8 +44,8 @@ def test_clear_reuse(self):
def test_clear_edges(self):
dag = rustworkx.PyDAG()
node_a = dag.add_node("a")
node_b = dag.add_child(node_a, "b", {"a": 1}) # noqa: F841
node_c = dag.add_child(node_a, "c", {"a": 2}) # noqa: F841
node_b = dag.add_child(node_a, "b", {"a": 1}) # noqa: F841
node_c = dag.add_child(node_a, "c", {"a": 2}) # noqa: F841
dag.clear_edges()
self.assertEqual(dag.num_nodes(), 3)
self.assertEqual(dag.num_edges(), 0)
Expand Down

0 comments on commit e6b807a

Please sign in to comment.