~aleteoryx/muditaos

ref: d6cae8883229d89ed32bc31087dc0f03c4fef1d9 muditaos/test/pytest/service-desktop/test_factory_reset.py -rw-r--r-- 526 bytes
d6cae888 — Radoslaw Wicik [EGD-6455] Add rsync to docker 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (c) 2017-2020, 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.skip(reason="This will make a factory reset")
@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