replicate bug in test

This commit is contained in:
Cayo Puigdefabregas 2021-04-26 15:22:09 +02:00
parent cc687fa4ea
commit e496f8009c

View file

@ -248,6 +248,8 @@ def test_device_query_search(user: UserClient):
assert i['items'][0]['id'] == 1 assert i['items'][0]['id'] == 1
i, _ = user.get(res=Device, query=[('search', 'intel')]) i, _ = user.get(res=Device, query=[('search', 'intel')])
assert len(i['items']) == 1 assert len(i['items']) == 1
i, _ = user.get(res=Device, query=[('search', i['items'][0]['devicehubID'])])
assert len(i['items']) == 1
i, _ = user.get(res=Device, query=[('search', '1')]) i, _ = user.get(res=Device, query=[('search', '1')])
assert len(i['items']) == 1 assert len(i['items']) == 1