Fix tests that failed between 0:00 and 4:00 / 4:30 AM (#3987)

This commit is contained in:
Mira
2024-03-15 16:40:56 +01:00
committed by GitHub
parent 9f794290dc
commit 39705556cd
2 changed files with 2 additions and 2 deletions

View File

@@ -663,7 +663,7 @@ class PaymentReminderTests(TestCase):
code='FOO', event=self.event, email='dummy@dummy.test',
status=Order.STATUS_PENDING, locale='en',
datetime=now() - timedelta(hours=4),
expires=now() - timedelta(hours=4) + timedelta(days=10),
expires=now().replace(hour=12, minute=0, second=0) + timedelta(days=10),
total=Decimal('46.00'),
)
self.ticket = Item.objects.create(event=self.event, name='Early-bird ticket',