fixed test errors
This commit is contained in:
parent
d7023a9496
commit
26f27127b8
|
@ -1240,10 +1240,10 @@ def test_snapshot_errors(user: UserClient):
|
|||
|
||||
assert SnapshotsLog.query.all() == []
|
||||
body11, res = user.post(snapshot_11, res=Snapshot)
|
||||
assert SnapshotsLog.query.all() == []
|
||||
assert len(SnapshotsLog.query.all()) == 1
|
||||
bodyLite, res = user.post(snapshot_lite, uri="/api/inventory/")
|
||||
dev = m.Device.query.filter_by(devicehub_id=bodyLite['dhid']).one()
|
||||
assert len(SnapshotsLog.query.all()) == 3
|
||||
assert len(SnapshotsLog.query.all()) == 4
|
||||
|
||||
assert body11['device'].get('hid') == dev.hid
|
||||
assert body11['device']['id'] == dev.id
|
||||
|
|
Reference in a new issue