Skip to content

Commit 7b0fedf

Browse files
committed
Remove test for island-mode
Graphs in island mode are not supported yet. Earlier, this test was using an `Unspecified` component category as a junction node, to start traversing from, which is inaccurate. The `Unspecified` component should always be an error, to identify an unfilled category field, due to a bug. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 465f914 commit 7b0fedf

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/microgrid/test_grid.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,6 @@
2929
_MICROGRID_ID = MicrogridId(1)
3030

3131

32-
async def test_grid_1(mocker: MockerFixture) -> None:
33-
"""Test the grid connection module."""
34-
# The tests here need to be in this exact sequence, because the grid connection
35-
# is a singleton. Once it gets created, it stays in memory for the duration of
36-
# the tests, unless we explicitly delete it.
37-
38-
# validate that islands with no grid connection are accepted.
39-
unspec_1 = UnspecifiedComponent(id=ComponentId(1), microgrid_id=_MICROGRID_ID)
40-
meter_2 = Meter(id=ComponentId(2), microgrid_id=_MICROGRID_ID)
41-
components = {unspec_1, meter_2}
42-
connections = {ComponentConnection(source=unspec_1.id, destination=meter_2.id)}
43-
44-
graph = gr._MicrogridComponentGraph( # pylint: disable=protected-access
45-
components=components, connections=connections
46-
)
47-
48-
async with MockMicrogrid(graph=graph, mocker=mocker), AsyncExitStack() as stack:
49-
grid = microgrid.grid()
50-
assert grid is not None
51-
stack.push_async_callback(grid.stop)
52-
53-
assert grid
54-
assert grid.fuse
55-
assert grid.fuse.max_current == Current.from_amperes(0.0)
56-
57-
5832
async def test_grid_2(mocker: MockerFixture) -> None:
5933
"""Validate that microgrids with one grid connection are accepted."""
6034
grid_1 = GridConnectionPoint(

0 commit comments

Comments
 (0)