From 99e7764945b6ddc742180d85ef38e588335b0565 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 12 Apr 2022 11:19:56 +0200 Subject: [PATCH] add check wbid and owner in lite wb --- tests/test_snapshot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_snapshot.py b/tests/test_snapshot.py index 6418ef1d..d5fb5332 100644 --- a/tests/test_snapshot.py +++ b/tests/test_snapshot.py @@ -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)