~aleteoryx/muditaos

ref: 90bfaa847d606711f4697a489cc7b9a901f1729d muditaos/test/pytest/service-desktop/test_factory_reset.py -rw-r--r-- 487 bytes
90bfaa84 — Pawel.Paprocki [EGD-6352] Add Factory reset mode 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
import pytest
from harness.interface.defs import status


@pytest.mark.service_desktop_test
@pytest.mark.rt1051
@pytest.mark.usefixtures("usb_unlocked")
def test_factory_reset(harness):
    body = {"factoryRequest": True}
    ret = harness.endpoint_request("factory", "post", body)
    assert ret["status"] == status["OK"]
    assert ret["body"] == body