tests: update for late string change
This commit is contained in:
parent
413518158f
commit
605a0c68f0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue