From eb859ce6c2f97291e072d06b2fad76f6518931ca Mon Sep 17 00:00:00 2001 From: Jordi Nadeu Date: Wed, 5 Aug 2020 11:54:43 +0200 Subject: [PATCH] Fixing test_get_all_lots --- tests/test_lot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_lot.py b/tests/test_lot.py index 50f01641..b2beb27f 100644 --- a/tests/test_lot.py +++ b/tests/test_lot.py @@ -386,12 +386,12 @@ def test_lot_post_add_remove_device_view(app: Devicehub, user: UserClient): @pytest.mark.mvp def test_get_all_lots(user: UserClient): """Tests submitting and retreiving all lots.""" - l, _ = user.post({'name': 'Lot1', 'description': 'comments,lot1,testcomment,'}, res=Lot) - l, _ = user.post({'name': 'Lot2', 'description': 'comments,lot2,testcomment,'}, res=Lot) + l, _ = user.post({'name': 'Lot1', 'description': 'comments1,lot1,testcomment,'}, res=Lot) + l, _ = user.post({'name': 'Lot2', 'description': 'comments2,lot2,testcomment,'}, res=Lot) l, _ = user.post({'name': 'Lot3', 'description': 'comments3,lot3,testcomment,'}, res=Lot) l, _ = user.get(res=Lot) assert l['items'][0]['name'] == 'Lot1' - assert l['items'][0]['description'] == 'comments,lot1,testcomment,' + assert l['items'][0]['description'] == 'comments1,lot1,testcomment,' assert l['items'][2]['name'] == 'Lot3' - assert l['items'][2]['description'] == 'comments,lot3,testcomment,' + assert l['items'][2]['description'] == 'comments3,lot3,testcomment,'