misc: fix some urls in agenda view tests

This commit is contained in:
Lauréline Guérin 2023-01-01 10:21:20 +01:00
parent da298339d6
commit 09a2f58807
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 4 additions and 4 deletions

View File

@ -1562,7 +1562,7 @@ def test_agenda_month_view(app, admin_user, manager_user, api_user, get_proper_h
login(app)
resp = app.get('/manage/agendas/%s/day/%s/%s/%s/' % (agenda.pk, today.year, today.month, today.day))
resp = resp.click('Month')
assert resp.request.url.endswith('month/%s/%s/%s/' % (today.year, today.month, today.day))
assert resp.request.url.endswith('month/%s/%02d/%02d/' % (today.year, today.month, today.day))
assert '>Month<' in resp.text
assert '>Week<' in resp.text
@ -1970,7 +1970,7 @@ def test_agenda_week_view(app, admin_user, manager_user, api_user, get_proper_ht
login(app)
resp = app.get('/manage/agendas/%s/day/%d/%d/%d/' % (agenda.pk, today.year, today.month, today.day))
resp = resp.click('Week')
assert resp.request.url.endswith('week/%s/%s/%s/' % (today.year, today.month, today.day))
assert resp.request.url.endswith('week/%s/%02d/%02d/' % (today.year, today.month, today.day))
assert '>Month<' in resp.text
assert '>Week<' in resp.text
@ -2632,7 +2632,7 @@ def test_virtual_agenda_week_view(app, admin_user, get_proper_html_str):
login(app)
resp = app.get('/manage/agendas/%s/day/%d/%d/%d/' % (agenda.pk, today.year, today.month, today.day))
resp = resp.click('Week')
assert resp.request.url.endswith('week/%s/%s/%s/' % (today.year, today.month, today.day))
assert resp.request.url.endswith('week/%s/%02d/%02d/' % (today.year, today.month, today.day))
assert '>Month<' in resp.text
assert '>Week<' in resp.text
@ -2755,7 +2755,7 @@ def test_virtual_agenda_month_view(app, admin_user, get_proper_html_str):
login(app)
resp = app.get('/manage/agendas/%s/day/%d/%d/%d/' % (agenda.pk, today.year, today.month, today.day))
resp = resp.click('Month')
assert resp.request.url.endswith('month/%s/%s/%s/' % (today.year, today.month, today.day))
assert resp.request.url.endswith('month/%s/%02d/%02d/' % (today.year, today.month, today.day))
assert '>Month<' in resp.text
assert '>Week<' in resp.text