Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed Nov 19, 2024
1 parent 37ec060 commit 8307e83
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/model/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,21 @@ async def test_stop_inclusion(controller, uuid4, mock_command):
}


async def test_cancel_secure_bootstrap_s2(controller, uuid4, mock_command):
"""Test cancel secure bootstrap S2."""
ack_commands = mock_command(
{"command": "controller.cancel_secure_bootstrap_s2"},
{},
)
assert await controller.async_cancel_secure_bootstrap_s2() is None

assert len(ack_commands) == 1
assert ack_commands[0] == {
"command": "controller.cancel_secure_bootstrap_s2",
"messageId": uuid4,
}


async def test_begin_exclusion(controller, uuid4, mock_command):
"""Test begin exclusion."""
ack_commands = mock_command(
Expand Down

0 comments on commit 8307e83

Please sign in to comment.