~aleteoryx/muditaos

ref: e1400aee902f44fb81c5a1efb32d9db561a88df2 muditaos/test/pytest/service-desktop/test_device_info.py -rw-r--r-- 429 bytes
e1400aee — Radoslaw Wicik [EGD-5685] Add version field in DeviceInfo EP 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
# 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
def test_device_info(harness):
    body = {}
    ret = harness.endpoint_request("deviceInfo", "get", body)
    assert ret["status"] == status["OK"]

    assert 0 < int(ret["body"]["fsFreePercent"]) <= 100