@@ -62,7 +62,6 @@ def sample_input_components(self) -> Set[Component]:
6262 return {
6363 Component (11 , ComponentCategory .GRID ),
6464 Component (21 , ComponentCategory .METER ),
65- Component (31 , ComponentCategory .JUNCTION ),
6665 Component (41 , ComponentCategory .METER ),
6766 Component (51 , ComponentCategory .INVERTER ),
6867 Component (61 , ComponentCategory .BATTERY ),
@@ -72,8 +71,7 @@ def sample_input_components(self) -> Set[Component]:
7271 def sample_input_connections (self ) -> Set [Connection ]:
7372 return {
7473 Connection (11 , 21 ),
75- Connection (21 , 31 ),
76- Connection (31 , 41 ),
74+ Connection (21 , 41 ),
7775 Connection (41 , 51 ),
7876 Connection (51 , 61 ),
7977 }
@@ -142,15 +140,13 @@ def test_without_filters(self) -> None:
142140 input_components = {
143141 101 : Component (101 , ComponentCategory .GRID ),
144142 102 : Component (102 , ComponentCategory .METER ),
145- 103 : Component (103 , ComponentCategory .JUNCTION ),
146143 104 : Component (104 , ComponentCategory .METER ),
147144 105 : Component (105 , ComponentCategory .INVERTER ),
148145 106 : Component (106 , ComponentCategory .BATTERY ),
149146 }
150147 input_connections = {
151148 Connection (101 , 102 ),
152- Connection (102 , 103 ),
153- Connection (103 , 104 ),
149+ Connection (102 , 104 ),
154150 Connection (104 , 105 ),
155151 Connection (105 , 106 ),
156152 }
@@ -186,16 +182,14 @@ def test_without_filters(self) -> None:
186182 ({1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }, set ()),
187183 ({11 }, {Component (11 , ComponentCategory .GRID )}),
188184 ({21 }, {Component (21 , ComponentCategory .METER )}),
189- ({31 }, {Component (31 , ComponentCategory .JUNCTION )}),
190185 ({41 }, {Component (41 , ComponentCategory .METER )}),
191186 ({51 }, {Component (51 , ComponentCategory .INVERTER )}),
192187 ({61 }, {Component (61 , ComponentCategory .BATTERY )}),
193188 (
194- {31 , 11 , 61 },
189+ {11 , 61 },
195190 {
196191 Component (11 , ComponentCategory .GRID ),
197192 Component (61 , ComponentCategory .BATTERY ),
198- Component (31 , ComponentCategory .JUNCTION ),
199193 },
200194 ),
201195 (
@@ -560,23 +554,20 @@ def test_refresh_from(self) -> None:
560554 components = {
561555 Component (1 , ComponentCategory .GRID ),
562556 Component (2 , ComponentCategory .METER ),
563- Component (3 , ComponentCategory .JUNCTION ),
564557 Component (4 , ComponentCategory .METER ),
565558 Component (5 , ComponentCategory .INVERTER ),
566559 Component (6 , ComponentCategory .BATTERY ),
567560 },
568561 connections = {
569562 Connection (1 , 2 ),
570- Connection (2 , 3 ),
571- Connection (3 , 4 ),
563+ Connection (2 , 4 ),
572564 Connection (4 , 5 ),
573565 Connection (5 , 6 ),
574566 },
575567 )
576568 expected = {
577569 Component (1 , ComponentCategory .GRID ),
578570 Component (2 , ComponentCategory .METER ),
579- Component (3 , ComponentCategory .JUNCTION ),
580571 Component (4 , ComponentCategory .METER ),
581572 Component (5 , ComponentCategory .INVERTER ),
582573 Component (6 , ComponentCategory .BATTERY ),
@@ -585,8 +576,7 @@ def test_refresh_from(self) -> None:
585576 assert set (graph .components ()) == expected
586577 assert graph .connections () == {
587578 Connection (1 , 2 ),
588- Connection (2 , 3 ),
589- Connection (3 , 4 ),
579+ Connection (2 , 4 ),
590580 Connection (4 , 5 ),
591581 Connection (5 , 6 ),
592582 }
@@ -614,8 +604,7 @@ def test_refresh_from(self) -> None:
614604
615605 assert graph .connections () == {
616606 Connection (1 , 2 ),
617- Connection (2 , 3 ),
618- Connection (3 , 4 ),
607+ Connection (2 , 4 ),
619608 Connection (4 , 5 ),
620609 Connection (5 , 6 ),
621610 }
0 commit comments