diff options
-rw-r--r-- | unittest/test_pro.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unittest/test_pro.py b/unittest/test_pro.py index 83c6da3..dc21f0c 100644 --- a/unittest/test_pro.py +++ b/unittest/test_pro.py @@ -943,15 +943,18 @@ def test_get_device_model(C): @pytest.mark.firmware def test_bootloader_password_change_pro(C): + skip_if_device_version_lower_than({'P': 11}) + assert C.NK_change_firmware_password_pro(b'zxcasd', b'zxcasd') == DeviceErrorCode.WRONG_PASSWORD assert C.NK_change_firmware_password_pro(DefaultPasswords.UPDATE, DefaultPasswords.UPDATE_TEMP) == DeviceErrorCode.STATUS_OK assert C.NK_change_firmware_password_pro(DefaultPasswords.UPDATE_TEMP, DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK # FIXME add tests for maximum password length - + @pytest.mark.firmware def test_bootloader_run_pro(C): + skip_if_device_version_lower_than({'P': 11}) assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE_TEMP) == DeviceErrorCode.WRONG_PASSWORD # Not enabled due to lack of side-effect removal at this point # assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK |