Skip to content

Commit

Permalink
Add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 25, 2024
1 parent cec675d commit 7fc8307
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_command_dome.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,10 @@ async def test_dome_anti_flap(actor: ECPActor, mocker: MockerFixture):
with pytest.raises(DomeError):
await actor.plc.dome.open()
await asyncio.sleep(0.1)


async def test_dome_not_allowed(actor: ECPActor, mocker: MockerFixture):
mocker.patch.object(actor.plc.dome, "is_allowed", return_value=False)

with pytest.raises(DomeError, match="Dome is not allowed to open."):
await actor.plc.dome.open()

0 comments on commit 7fc8307

Please sign in to comment.