~aleteoryx/muditaos

ref: a912db548997bf89d875be3494c8d130a5a48f12 muditaos/test/pytest/service-desktop/test_factory_reset.py -rw-r--r-- 489 bytes
a912db54 — Pawel.Paprocki [BH-677] Add widget AlarmSetSpinner 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("phone_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