summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unittest/constants.py1
-rw-r--r--unittest/test_pro.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/unittest/constants.py b/unittest/constants.py
index bf4f5b9..9e04701 100644
--- a/unittest/constants.py
+++ b/unittest/constants.py
@@ -52,6 +52,7 @@ class DeviceErrorCode:
STATUS_NOT_AUTHORIZED = 5
STATUS_AES_DEC_FAILED = 0xa
STATUS_UNKNOWN_ERROR = 100
+ STATUS_DISCONNECTED = 255
class LibraryErrors:
diff --git a/unittest/test_pro.py b/unittest/test_pro.py
index 3f1cb8d..d26aa7c 100644
--- a/unittest/test_pro.py
+++ b/unittest/test_pro.py
@@ -1018,7 +1018,7 @@ def test_bootloader_run_pro_wrong_password(C):
@pytest.mark.firmware
def test_bootloader_run_pro(C):
# Not enabled due to lack of side-effect removal at this point
- assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK
+ assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_DISCONNECTED
@pytest.mark.firmware