Skip to content

Commit 2faa6f6

Browse files
committed
Remove some clutter from the test
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent fefafc5 commit 2faa6f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/microgrid/test_grid.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ async def test_grid_2(mocker: MockerFixture) -> None:
6969
assert grid is not None
7070
stack.push_async_callback(grid.stop)
7171

72-
expected_fuse_current = Current.from_amperes(123.0)
73-
expected_fuse = Fuse(expected_fuse_current)
74-
75-
assert grid.fuse == expected_fuse
72+
assert grid.fuse == Fuse(max_current=Current.from_amperes(123.0))
7673

7774

7875
async def test_grid_3(mocker: MockerFixture) -> None:

0 commit comments

Comments
 (0)