Skip to content

Commit c7eb81f

Browse files
committed
Update branches test
1 parent 2cc6ece commit c7eb81f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_grid_optimizer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,9 +1260,7 @@ def test_allocate_branches_assigns_branch_and_propagates_to_consumers(
12601260
optimizer._set_direction_of_links()
12611261
optimizer.distribution_links = optimizer.links[optimizer.links["link_type"] == "distribution"]
12621262

1263-
optimizer.allocate_poles_to_branches()
1264-
optimizer.allocate_subbranches_to_branches()
1265-
optimizer.label_branch_of_consumers()
1263+
optimizer._build_branch_hierarchy()
12661264

12671265
assert optimizer.nodes.at["p-0", "branch"] == "p-0"
12681266
assert optimizer.nodes.at["p-1", "branch"] == "p-0"

0 commit comments

Comments
 (0)