misc: fix failing tests at midnight (#82753)
gitea/chrono/pipeline/head This commit looks good
Details
gitea/chrono/pipeline/head This commit looks good
Details
This commit is contained in:
parent
cba5520541
commit
9defbefe1e
|
@ -871,14 +871,14 @@ def test_meetings_and_virtual_datetimes_date_filter(app):
|
|||
virtual_agenda.save()
|
||||
|
||||
# exclude weekday6 through date_end, 4 slots each day * 5 days
|
||||
params = {'date_end': localtime(now() + datetime.timedelta(days=6)).date().isoformat()}
|
||||
params = {'date_end': (localtime(now()).date() + datetime.timedelta(days=6)).isoformat()}
|
||||
resp = app.get(foo_api_url, params=params)
|
||||
assert len(resp.json['data']) == 20
|
||||
resp = app.get(virtual_api_url, params=params)
|
||||
assert len(resp.json['data']) == 20
|
||||
|
||||
params = {
|
||||
'date_end': localtime(now() + datetime.timedelta(days=6))
|
||||
'date_end': (localtime(now()) + datetime.timedelta(days=6))
|
||||
.replace(hour=11, minute=0, second=0, microsecond=0)
|
||||
.isoformat()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue