mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 14:18:24 -04:00
Remove test/step- routes
We don't need these anymore as all users will use the `one-off/step` routes. This has mostly involved tidying up the tests which are still a little disorganised and not as good as I'd like but it's a step in the right direction. More refactoring is still possible to the routes, it may come in a later PR if I have time.
This commit is contained in:
@@ -1973,7 +1973,7 @@ def test_should_show_page_for_a_deleted_template(
|
||||
|
||||
content = str(page)
|
||||
assert url_for("main.edit_service_template", service_id=SERVICE_ONE_ID, template_id=fake_uuid) not in content
|
||||
assert url_for("main.send_test", service_id=SERVICE_ONE_ID, template_id=fake_uuid) not in content
|
||||
assert url_for("main.send_one_off", service_id=SERVICE_ONE_ID, template_id=fake_uuid) not in content
|
||||
assert page.select('p.hint')[0].text.strip() == 'This template was deleted today at 3:00pm.'
|
||||
assert 'Delete this template' not in page.select_one('main').text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user