tests: update for late string change

This commit is contained in:
Frédéric Péters 2018-01-15 14:27:43 +01:00
parent 413518158f
commit 605a0c68f0
1 changed files with 2 additions and 2 deletions

View File

@ -1190,13 +1190,13 @@ def test_agenda_day_view(app, admin_user, manager_user, api_user):
today = datetime.date.today()
assert resp.location.endswith('%s/%s/%s/' % (today.year, today.month, today.day))
resp = resp.follow()
assert 'Closed' in resp.body # no time pediod
assert 'No opening hours this day.' in resp.body # no time pediod
TimePeriod(desk=desk, weekday=today.weekday(),
start_time=datetime.time(10, 0),
end_time=datetime.time(18, 0)).save()
resp = app.get('/manage/agendas/%s/' % agenda.id, status=302).follow()
assert not 'Closed' in resp.body
assert not 'No opening hours this day.' in resp.body
assert not 'div class="booked' in resp.body
assert resp.body.count('<tr') == 17