diff --git a/tests/test_basic.py b/tests/test_basic.py index 94ddfb3b..00c9cf93 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -119,4 +119,4 @@ def test_api_docs(client: Client): 'scheme': 'basic', 'name': 'Authorization' } - assert len(docs['definitions']) == 119 + assert len(docs['definitions']) == 120 diff --git a/tests/test_lot.py b/tests/test_lot.py index eb36dfc0..e71f9d6d 100644 --- a/tests/test_lot.py +++ b/tests/test_lot.py @@ -413,10 +413,8 @@ def test_lot_error_add_device_from_other_user(user: UserClient): res=Lot, item='{}/devices'.format(parent['id']), query=[('id', device_id)]) - assert lot['devices'][0]['id'] == device_id, 'Lot contains device' - assert len(lot['devices']) == 1 - with raises(JSONDecodeError): - device, _ = user.get(res=Device, item=device.devicehub_id) + assert lot['devices'] == [], 'Lot contains device' + assert len(lot['devices']) == 0 @pytest.mark.mvp diff --git a/tests/test_snapshot.py b/tests/test_snapshot.py index a4f8ec79..4ab6dd95 100644 --- a/tests/test_snapshot.py +++ b/tests/test_snapshot.py @@ -29,7 +29,7 @@ from ereuse_devicehub.resources.device.sync import MismatchBetweenProperties, \ from ereuse_devicehub.resources.enums import ComputerChassis, SnapshotSoftware from ereuse_devicehub.resources.tag import Tag from ereuse_devicehub.resources.user.models import User -from ereuse_devicehub.resources.action.views import save_json +from ereuse_devicehub.resources.action.views.snapshot import save_json from ereuse_devicehub.resources.documents import documents from tests.conftest import file from tests import conftest