From 9bd787c9244485eb8c322916af64e7804b2936c4 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 18 Mar 2021 10:59:09 +0100 Subject: [PATCH] change test --- tests/test_action.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_action.py b/tests/test_action.py index 4c1ee28f..0def7530 100644 --- a/tests/test_action.py +++ b/tests/test_action.py @@ -776,15 +776,13 @@ def test_trade(user: UserClient, user2: UserClient): device, _ = user.get(res=Device, item=snapshot['device']['id']) assert device['id'] == snapshot['device']['id'] request_post = { - 'userTo': user.user['email'], - 'documentID': "1", + 'userTo': user2.user['email'], 'price': 1.0, 'date': "2020-12-01T02:00:00+00:00", 'devices': [snapshot['device']['id']] } - action, _ = user.post(res=models.Trade, data=request_post, status=200) + action, _ = user.post(res=models.Trade, data=request_post) - # import pdb; pdb.set_trace() with raises(JSONDecodeError): device1, _ = user.get(res=Device, item=device['id'])