tests: add missing ordering in test_recurring_events (#80402)
gitea/chrono/pipeline/head This commit looks good Details

This commit is contained in:
Valentin Deniaud 2023-08-16 11:27:41 +02:00
parent 84463c84bf
commit e2d70795b1
1 changed files with 1 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ def test_recurring_events_api_fillslots_update_from_date(app, user):
resp = app.post_json(fillslots_url + 'action=book', params=params)
assert resp.json['booking_count'] == 8
assert resp.json['cancelled_booking_count'] == 0
bookings = Booking.objects.filter(cancellation_datetime__isnull=True)
bookings = Booking.objects.filter(cancellation_datetime__isnull=True).order_by('event__start_datetime')
assert [x.strftime('%A %d/%m') for x in bookings.values_list('event__start_datetime', flat=True)] == [
'Monday 06/09',
'Thursday 09/09',