Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 8b7dedf

Browse files
committed
workflow fix, fix test_devices
1 parent 585383c commit 8b7dedf

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v2
32-
with: ${{ github.event.inputs.sdkSha }}
32+
with:
33+
ref: ${{ github.event.inputs.sdkSha }}
3334
- name: Login to DO container registry
3435
uses: docker/login-action@v1
3536
with:

tests/devices/test_devices.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ def test_devices(seam: Seam):
88

99
devices = seam.devices.list()
1010
assert len(devices) > 0
11-
print("devices", devices)
1211

13-
some_device = seam.devices.get(name="FRONT DOOR")
14-
assert some_device.properties.name == "FRONT DOOR"
12+
some_device = seam.devices.get(name="Generated Lock 0")
13+
assert some_device.properties.name == "Generated Lock 0"
1514

1615
locks = seam.locks.list()
1716
assert len(locks) > 0
1817

1918
some_lock = seam.locks.get(device=(some_device))
2019
assert some_lock.device_id == some_device.device_id
2120

22-
assert some_lock.properties.locked == False
23-
seam.locks.lock_door(device=(some_device))
24-
some_locked_lock = seam.locks.get(device=(some_device))
25-
assert some_locked_lock.properties.locked == True
21+
assert some_lock.properties.locked == True
2622

2723
seam.locks.unlock_door(device=(some_device.device_id))
2824
some_unlocked_lock = seam.locks.get(device=(some_device))
2925
assert some_unlocked_lock.properties.locked == False
26+
27+
seam.locks.lock_door(device=(some_device))
28+
some_locked_lock = seam.locks.get(device=(some_device))
29+
assert some_locked_lock.properties.locked == True

0 commit comments

Comments
 (0)