tests: fix string
This commit is contained in:
parent
0ec0604af5
commit
a0cc40a313
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue