misc: fixed flaky test on /api/agendas/recurring-events/ (#68260)
This commit is contained in:
parent
a2e89316d2
commit
bc345dcbfa
|
@ -546,18 +546,18 @@ def test_recurring_events_api_list_overlapping_events(app):
|
|||
resp = app.get(
|
||||
'/api/agendas/recurring-events/?agendas=first-agenda,second-agenda&sort=day&check_overlaps=true'
|
||||
)
|
||||
assert [(x['id'], x['overlaps']) for x in resp.json['data']] == [
|
||||
('first-agenda@event-12-14:1', ['second-agenda@event-12-18:1']),
|
||||
assert [(x['id'], set(x['overlaps'])) for x in resp.json['data']] == [
|
||||
('first-agenda@event-12-14:1', {'second-agenda@event-12-18:1'}),
|
||||
(
|
||||
'second-agenda@event-12-18:1',
|
||||
['first-agenda@event-12-14:1', 'first-agenda@event-14-15:1', 'first-agenda@event-15-17:1'],
|
||||
{'first-agenda@event-12-14:1', 'first-agenda@event-14-15:1', 'first-agenda@event-15-17:1'},
|
||||
),
|
||||
('first-agenda@event-14-15:1', ['second-agenda@event-12-18:1']),
|
||||
('first-agenda@event-15-17:1', ['second-agenda@event-12-18:1']),
|
||||
('first-agenda@event-15-17:3', []),
|
||||
('second-agenda@event-12-18:5', ['first-agenda@event-15-17:5']),
|
||||
('second-agenda@no-duration:5', []),
|
||||
('first-agenda@event-15-17:5', ['second-agenda@event-12-18:5']),
|
||||
('first-agenda@event-14-15:1', {'second-agenda@event-12-18:1'}),
|
||||
('first-agenda@event-15-17:1', {'second-agenda@event-12-18:1'}),
|
||||
('first-agenda@event-15-17:3', set()),
|
||||
('second-agenda@event-12-18:5', {'first-agenda@event-15-17:5'}),
|
||||
('second-agenda@no-duration:5', set()),
|
||||
('first-agenda@event-15-17:5', {'second-agenda@event-12-18:5'}),
|
||||
]
|
||||
|
||||
resp = app.get('/api/agendas/recurring-events/?agendas=first-agenda,second-agenda&sort=day')
|
||||
|
|
Loading…
Reference in New Issue