From abd1a50344ef3aa7dfe4f1b03914a7f8bc8a80f9 Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Thu, 4 Apr 2024 14:46:09 +0200 Subject: [PATCH] Test wait_for_action_attempt options --- test/action_attempts/test_action_attempts.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/action_attempts/test_action_attempts.py b/test/action_attempts/test_action_attempts.py index de87f2a..b2d9c2b 100644 --- a/test/action_attempts/test_action_attempts.py +++ b/test/action_attempts/test_action_attempts.py @@ -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(