From 5e97cdf8634bae85a3b1c1cb2ca5a0cf3c5d4dd6 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 25 May 2021 11:35:03 +0200 Subject: [PATCH] less fixing tests --- tests/test_action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_action.py b/tests/test_action.py index 99b27e6a..4bf68d10 100644 --- a/tests/test_action.py +++ b/tests/test_action.py @@ -1168,7 +1168,7 @@ def test_usecase_confirmation(user: UserClient, user2: UserClient): query=devices[:7]) # the manager shares the temporary lot with the SCRAP as an incoming lot - # for the CRAP to confirm it + # for the SCRAP to confirm it request_post = { 'type': 'Trade', 'devices': [], @@ -1279,6 +1279,7 @@ def test_usecase_confirmation(user: UserClient, user2: UserClient): assert device_10.actions[-1].t == 'ConfirmRevoke' assert device_10.actions[-2].t == 'Revoke' + # check validation error request_confirm_revoke = { 'type': 'ConfirmRevoke', 'action': device_10.actions[-1].id, @@ -1287,7 +1288,6 @@ def test_usecase_confirmation(user: UserClient, user2: UserClient): ] } - # check validation error user2.post(res=models.Action, data=request_confirm_revoke, status=422)