Skip to content

Commit bdb5a34

Browse files
committed
Chore: Fixed tests on device accepting
1 parent a663151 commit bdb5a34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shellhub/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Increment versions here according to SemVer
2-
__version__ = "0.2.2"
2+
__version__ = "0.2.3"
33

44
from .models.device import ShellHubDevice, ShellHubDeviceInfo
55
from .models.base import ShellHub

tests/test_devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def test_accept_device(self, shellhub_device, requests_mock):
256256
requests_mock.get(f"{MOCKED_DOMAIN_URL}/api/devices/1", json=mock_response)
257257
requests_mock.patch(f"{MOCKED_DOMAIN_URL}/api/devices/1/accept", status_code=200)
258258

259-
shellhub_device.acceptable = True
259+
shellhub_device.status = "pending"
260260
shellhub_device.accept()
261261

262262
assert not shellhub_device.acceptable

0 commit comments

Comments
 (0)