tests: fix string

This commit is contained in:
Valentin Deniaud 2022-03-15 13:15:45 +01:00
parent 0ec0604af5
commit a0cc40a313
1 changed files with 2 additions and 2 deletions

View File

@ -109,11 +109,11 @@ def test_shared_custody_agenda_month_view(app, admin_user):
resp = app.get('/manage/shared-custody/%s/' % agenda.pk).follow()
assert 'Custody agenda of John Doe and Jane Doe' in resp.text
assert 'February 2022' in resp.text
assert 'Configuraton is not completed yet.' in resp.text
assert 'Configuration is not completed yet.' in resp.text
SharedCustodyRule.objects.create(agenda=agenda, guardian=mother, days=list(range(7)), weeks='odd')
resp = app.get('/manage/shared-custody/%s/' % agenda.pk).follow()
assert 'Configuraton is not completed yet.' not in resp.text
assert 'Configuration is not completed yet.' not in resp.text
assert all('Week %s' % i in resp.text for i in range(5, 10))
assert resp.pyquery('tbody tr th.today span').text() == 'Tuesday 22'