Skip to content

Commit 3b8bd55

Browse files
committed
Remove test for grid connection without a fuse
The microgrid API now doesn't support not reporting a rated fuse for a grid connection, so we don't need to test for that case anymore. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 9e3c753 commit 3b8bd55

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

tests/microgrid/test_grid.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,6 @@ async def test_grid_2(mocker: MockerFixture) -> None:
7575
assert grid.fuse == Fuse(max_current=Current.from_amperes(123.0))
7676

7777

78-
async def test_grid_3(mocker: MockerFixture) -> None:
79-
"""Validate that microgrids with a grid connection without a fuse are instantiated."""
80-
components = {
81-
client.Component(
82-
1, client.ComponentCategory.GRID, None, client.GridMetadata(None)
83-
),
84-
client.Component(2, client.ComponentCategory.METER),
85-
}
86-
connections = {
87-
client.Connection(1, 2),
88-
}
89-
90-
graph = gr._MicrogridComponentGraph( # pylint: disable=protected-access
91-
components=components, connections=connections
92-
)
93-
94-
async with MockMicrogrid(graph=graph, mocker=mocker), AsyncExitStack() as stack:
95-
grid = microgrid.grid()
96-
assert grid is not None
97-
stack.push_async_callback(grid.stop)
98-
assert grid.fuse is None
99-
100-
10178
async def test_grid_power_1(mocker: MockerFixture) -> None:
10279
"""Test the grid power formula with a grid side meter."""
10380
mockgrid = MockMicrogrid(grid_meter=True, mocker=mocker)

0 commit comments

Comments
 (0)