From 5b70690f2f277ea6bc53806d26f7a3053ad81cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 14 Aug 2019 17:43:48 +0200 Subject: [PATCH] tests: set receipt time manually to avoid formdata being too close (#35403) --- tests/test_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_api.py b/tests/test_api.py index ccf94fbe6..0812fe627 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -1389,6 +1389,7 @@ def test_user_forms(pub, local_user): formdata.data = {'0': 'foo@localhost', '1': 'xyy'} formdata.user_id = local_user.id formdata.just_created() + formdata.receipt_time = (datetime.datetime.now() + datetime.timedelta(days=1)).timetuple() formdata.jump_status('new') formdata.store()