Tests: Fix two flaky tests (#4557)

* Test: Fix test that relies on unstable database result order

* Tests: Fix test that fails between 0am and 1am
This commit is contained in:
Raphael Michel
2024-10-25 17:04:16 +02:00
committed by GitHub
parent 565f5e2ea7
commit 0cd1290624
3 changed files with 5 additions and 5 deletions

View File

@@ -451,7 +451,7 @@ def test_order_create_invoice(token_client, organizer, event, order):
"invoice_to_vat_id": "DE123",
"invoice_to_beneficiary": "",
"custom_field": None,
'date': now().date().isoformat(),
'date': now().astimezone(event.timezone).date().isoformat(),
'refers': None,
'locale': 'en',
'introductory_text': '',