fixing test

This commit is contained in:
Cayo Puigdefabregas 2020-12-09 12:06:43 +01:00
parent 4a147a50b7
commit 30ef4e594f
1 changed files with 2 additions and 2 deletions

View File

@ -503,8 +503,8 @@ def test_allocate_bad_dates(user: UserClient):
""" Tests allocate """ """ Tests allocate """
snapshot, _ = user.post(file('basic.snapshot'), res=models.Snapshot) snapshot, _ = user.post(file('basic.snapshot'), res=models.Snapshot)
device_id = snapshot['device']['id'] device_id = snapshot['device']['id']
delta = timedelta(days=30) delay = timedelta(days=30)
future = datetime.now() + delta future = datetime.now().replace(tzinfo=tzutc()) + delay
post_request = {"transaction": "ccc", post_request = {"transaction": "ccc",
"finalUserCode": "aabbcc", "finalUserCode": "aabbcc",
"name": "John", "name": "John",