base of test unassign

This commit is contained in:
Cayo Puigdefabregas 2021-08-17 11:06:04 +02:00
parent fc00f69b89
commit 3e232e40c7
1 changed files with 13 additions and 0 deletions

View File

@ -500,6 +500,19 @@ def test_get_devices_permissions(app: Devicehub, user: UserClient, user2: UserCl
assert len(devices['items']) == 1 assert len(devices['items']) == 1
assert len(devices2['items']) == 0 assert len(devices2['items']) == 0
@pytest.mark.mvp
def test_get_devices_unassigned(app: Devicehub, user: UserClient):
"""Checks GETting multiple devices."""
user.post(file('asus-eee-1000h.snapshot.11'), res=m.Snapshot)
url = '/devices/?filter={"type":["Computer"]}&unassign=0'
devices, res = user.get(url, None)
assert res.status_code == 200
assert len(devices['items']) == 1
@pytest.mark.mvp @pytest.mark.mvp
@pytest.mark.usefixtures(conftest.auth_app_context.__name__) @pytest.mark.usefixtures(conftest.auth_app_context.__name__)
def test_computer_monitor(): def test_computer_monitor():