From 30ef4e594f49d1732fda7d1bea650a4aeb43ce44 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 9 Dec 2020 12:06:43 +0100 Subject: [PATCH] fixing test --- 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 c81491e4..11b15f08 100644 --- a/tests/test_action.py +++ b/tests/test_action.py @@ -503,8 +503,8 @@ def test_allocate_bad_dates(user: UserClient): """ Tests allocate """ snapshot, _ = user.post(file('basic.snapshot'), res=models.Snapshot) device_id = snapshot['device']['id'] - delta = timedelta(days=30) - future = datetime.now() + delta + delay = timedelta(days=30) + future = datetime.now().replace(tzinfo=tzutc()) + delay post_request = {"transaction": "ccc", "finalUserCode": "aabbcc", "name": "John",