Skip to content

Commit

Permalink
Test wait_for_action_attempt options
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Apr 4, 2024
1 parent 8e6682f commit abd1a50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/action_attempts/test_action_attempts.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ def test_action_attempts(seam: Seam):
# Create multiple ActionAttempts
some_device = seam.devices.list()[0]
unlock_door1 = seam.locks.unlock_door(device_id=some_device.device_id)
unlock_door2 = seam.locks.unlock_door(device_id=some_device.device_id)
unlock_door2 = seam.locks.unlock_door(
device_id=some_device.device_id,
wait_for_action_attempt={
"timeout": 10.0,
"polling_interval": 2.0,
},
)

# Retrieve the list of ActionAttempts
action_attempts = seam.action_attempts.list(
Expand Down

0 comments on commit abd1a50

Please sign in to comment.