add check wbid and owner in lite wb
This commit is contained in:
parent
c8b11cf505
commit
99e7764945
|
@ -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)
|
||||
|
|
Reference in New Issue