diff --git a/tests/test_tag.py b/tests/test_tag.py index ce618e0b..3264750d 100644 --- a/tests/test_tag.py +++ b/tests/test_tag.py @@ -330,8 +330,8 @@ def test_tag_secondary_workbench_link_find(user: UserClient): s['device']['tags'] = [{'id': 'foo', 'secondary': 'bar', 'type': 'Tag'}] snapshot, _ = user.post(json_encode(s), res=Snapshot) device, _ = user.get(res=Device, item=snapshot['device']['devicehubID']) - assert device['tags'][0]['id'] == 'foo' - assert device['tags'][0]['secondary'] == 'bar' + assert device['tags'][-1]['id'] == 'foo' + assert device['tags'][-1]['secondary'] == 'bar' r, _ = user.get(res=Device, query=[('search', 'foo'), ('filter', {'type': ['Computer']})]) assert len(r['items']) == 1 diff --git a/tests/test_workbench.py b/tests/test_workbench.py index 8dd2e65f..e668e8f3 100644 --- a/tests/test_workbench.py +++ b/tests/test_workbench.py @@ -184,7 +184,7 @@ def test_snapshot_real_eee_1001pxd_with_rate(user: UserClient): assert pc['serialNumber'] == 'b8oaas048286' assert pc['manufacturer'] == 'asustek computer inc.' assert pc['hid'] == 'laptop-asustek_computer_inc-1001pxd-b8oaas048286-14:da:e9:42:f6:7c' - assert pc['tags'] == [] + assert len(pc['tags']) == 1 assert pc['networkSpeeds'] == [100, 0], 'Although it has WiFi we do not know the speed' assert pc['rate'] rate = pc['rate']