add check wbid and owner in lite wb

This commit is contained in:
Cayo Puigdefabregas 2022-04-12 11:19:56 +02:00
parent c8b11cf505
commit 99e7764945
1 changed files with 3 additions and 0 deletions

View File

@ -1127,3 +1127,6 @@ def test_snapshot_errors_timestamp(user: UserClient):
bodyLite, res = user.post(snapshot_lite, uri="/api/inventory/")
assert res.status_code == 201
assert len(SnapshotErrors.query.all()) == 1
error = SnapshotErrors.query.all()[0]
assert snapshot_lite['wbid'] == error.wbid
assert user.user['id'] == str(error.owner_id)