misc: fix some urls in agenda view tests
This commit is contained in:
parent
da298339d6
commit
09a2f58807
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue