mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Remove unused template.
Revert formatting changes
This commit is contained in:
@@ -1,33 +0,0 @@
|
|||||||
{% extends "withnav_template.html" %}
|
|
||||||
{% from "components/table.html" import text_field, edit_field %}
|
|
||||||
{% from "components/page-footer.html" import page_footer %}
|
|
||||||
|
|
||||||
{% block service_page_title %}
|
|
||||||
Inbound SMS Assigned Number
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block maincolumn_content %}
|
|
||||||
|
|
||||||
<h1 class="heading-large">Inbound SMS Assigned Nubmer</h1>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The following number has been assigned to your inbound sms service.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-weight:bold;">
|
|
||||||
{{inbound_number}}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
If you would like to continue and activate the inbound sms service, please click the confirm button.
|
|
||||||
</p>
|
|
||||||
<form method="post">
|
|
||||||
|
|
||||||
{{ page_footer(
|
|
||||||
'Confirm',
|
|
||||||
back_link=url_for('.service_settings', service_id=current_service.id),
|
|
||||||
back_link_text='Back to settings'
|
|
||||||
) }}
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
@@ -13,7 +13,6 @@ from app.notify_client.models import (
|
|||||||
User,
|
User,
|
||||||
InvitedUser
|
InvitedUser
|
||||||
)
|
)
|
||||||
|
|
||||||
from . import (
|
from . import (
|
||||||
service_json,
|
service_json,
|
||||||
TestClient,
|
TestClient,
|
||||||
@@ -220,8 +219,8 @@ def mock_update_service(mocker):
|
|||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_update_service_raise_httperror_duplicate_name(mocker):
|
def mock_update_service_raise_httperror_duplicate_name(mocker):
|
||||||
def _update(
|
def _update(
|
||||||
service_id,
|
service_id,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
json_mock = Mock(return_value={'message': {'name': ["Duplicate service name '{}'".format(kwargs.get('name'))]}})
|
json_mock = Mock(return_value={'message': {'name': ["Duplicate service name '{}'".format(kwargs.get('name'))]}})
|
||||||
resp_mock = Mock(status_code=400, json=json_mock)
|
resp_mock = Mock(status_code=400, json=json_mock)
|
||||||
@@ -519,6 +518,7 @@ def mock_get_service_templates(mocker):
|
|||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_service_templates_when_no_templates_exist(mocker):
|
def mock_get_service_templates_when_no_templates_exist(mocker):
|
||||||
|
|
||||||
def _create(service_id):
|
def _create(service_id):
|
||||||
return {'data': []}
|
return {'data': []}
|
||||||
|
|
||||||
@@ -529,6 +529,7 @@ def mock_get_service_templates_when_no_templates_exist(mocker):
|
|||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_service_templates_with_only_one_template(mocker):
|
def mock_get_service_templates_with_only_one_template(mocker):
|
||||||
|
|
||||||
def _get(service_id):
|
def _get(service_id):
|
||||||
return {'data': [
|
return {'data': [
|
||||||
template_json(
|
template_json(
|
||||||
@@ -1118,24 +1119,24 @@ def mock_get_jobs(mocker, api_user_active):
|
|||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_notifications(
|
def mock_get_notifications(
|
||||||
mocker,
|
mocker,
|
||||||
api_user_active,
|
api_user_active,
|
||||||
template_content=None,
|
template_content=None,
|
||||||
personalisation=None,
|
personalisation=None,
|
||||||
redact_personalisation=False,
|
redact_personalisation=False,
|
||||||
):
|
):
|
||||||
def _get_notifications(
|
def _get_notifications(
|
||||||
service_id,
|
service_id,
|
||||||
job_id=None,
|
job_id=None,
|
||||||
page=1,
|
page=1,
|
||||||
page_size=50,
|
page_size=50,
|
||||||
template_type=None,
|
template_type=None,
|
||||||
status=None,
|
status=None,
|
||||||
limit_days=None,
|
limit_days=None,
|
||||||
rows=5,
|
rows=5,
|
||||||
include_jobs=None,
|
include_jobs=None,
|
||||||
include_from_test_key=None,
|
include_from_test_key=None,
|
||||||
to=None,
|
to=None,
|
||||||
):
|
):
|
||||||
job = None
|
job = None
|
||||||
if job_id is not None:
|
if job_id is not None:
|
||||||
@@ -1213,8 +1214,8 @@ def mock_get_notifications_with_no_notifications(mocker):
|
|||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_inbound_sms(mocker):
|
def mock_get_inbound_sms(mocker):
|
||||||
def _get_inbound_sms(
|
def _get_inbound_sms(
|
||||||
service_id,
|
service_id,
|
||||||
user_number=None,
|
user_number=None,
|
||||||
):
|
):
|
||||||
return [{
|
return [{
|
||||||
'user_number': '0790090000' + str(i),
|
'user_number': '0790090000' + str(i),
|
||||||
@@ -1232,7 +1233,7 @@ def mock_get_inbound_sms(mocker):
|
|||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_inbound_sms_with_no_messages(mocker):
|
def mock_get_inbound_sms_with_no_messages(mocker):
|
||||||
def _get_inbound_sms(
|
def _get_inbound_sms(
|
||||||
service_id,
|
service_id,
|
||||||
):
|
):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
@@ -1245,7 +1246,7 @@ def mock_get_inbound_sms_with_no_messages(mocker):
|
|||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_inbound_sms_summary(mocker):
|
def mock_get_inbound_sms_summary(mocker):
|
||||||
def _get_inbound_sms_summary(
|
def _get_inbound_sms_summary(
|
||||||
service_id,
|
service_id,
|
||||||
):
|
):
|
||||||
return {
|
return {
|
||||||
'count': 99,
|
'count': 99,
|
||||||
@@ -1261,7 +1262,7 @@ def mock_get_inbound_sms_summary(mocker):
|
|||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def mock_get_inbound_sms_summary_with_no_messages(mocker):
|
def mock_get_inbound_sms_summary_with_no_messages(mocker):
|
||||||
def _get_inbound_sms_summary(
|
def _get_inbound_sms_summary(
|
||||||
service_id,
|
service_id,
|
||||||
):
|
):
|
||||||
return {
|
return {
|
||||||
'count': 0,
|
'count': 0,
|
||||||
@@ -1449,7 +1450,6 @@ def mock_get_monthly_template_statistics(mocker, service_one, fake_uuid):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return mocker.patch(
|
return mocker.patch(
|
||||||
'app.template_statistics_client.get_monthly_template_statistics_for_service',
|
'app.template_statistics_client.get_monthly_template_statistics_for_service',
|
||||||
side_effect=_stats
|
side_effect=_stats
|
||||||
@@ -1471,7 +1471,6 @@ def mock_get_monthly_notification_stats(mocker, service_one, fake_uuid):
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
return mocker.patch(
|
return mocker.patch(
|
||||||
'app.service_api_client.get_monthly_notification_stats',
|
'app.service_api_client.get_monthly_notification_stats',
|
||||||
side_effect=_stats
|
side_effect=_stats
|
||||||
@@ -1723,11 +1722,11 @@ def mock_reset_failed_login_count(mocker):
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_get_notification(
|
def mock_get_notification(
|
||||||
mocker,
|
mocker,
|
||||||
fake_uuid,
|
fake_uuid,
|
||||||
notification_status='delivered',
|
notification_status='delivered',
|
||||||
redact_personalisation=False,
|
redact_personalisation=False,
|
||||||
template_type=None,
|
template_type=None,
|
||||||
):
|
):
|
||||||
def _get_notification(
|
def _get_notification(
|
||||||
service_id,
|
service_id,
|
||||||
@@ -1766,7 +1765,7 @@ def mock_get_notification(
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_send_notification(mocker, fake_uuid):
|
def mock_send_notification(mocker, fake_uuid):
|
||||||
def _send_notification(
|
def _send_notification(
|
||||||
service_id, *, template_id, recipient, personalisation
|
service_id, *, template_id, recipient, personalisation
|
||||||
):
|
):
|
||||||
return {'id': fake_uuid}
|
return {'id': fake_uuid}
|
||||||
|
|
||||||
@@ -1784,11 +1783,11 @@ def client(app_):
|
|||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def logged_in_client(
|
def logged_in_client(
|
||||||
client,
|
client,
|
||||||
active_user_with_permissions,
|
active_user_with_permissions,
|
||||||
mocker,
|
mocker,
|
||||||
service_one,
|
service_one,
|
||||||
mock_login
|
mock_login
|
||||||
):
|
):
|
||||||
client.login(active_user_with_permissions, mocker, service_one)
|
client.login(active_user_with_permissions, mocker, service_one)
|
||||||
yield client
|
yield client
|
||||||
@@ -1796,11 +1795,11 @@ def logged_in_client(
|
|||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def logged_in_platform_admin_client(
|
def logged_in_platform_admin_client(
|
||||||
client,
|
client,
|
||||||
platform_admin_user,
|
platform_admin_user,
|
||||||
mocker,
|
mocker,
|
||||||
service_one,
|
service_one,
|
||||||
mock_login,
|
mock_login,
|
||||||
):
|
):
|
||||||
mock_get_user(mocker, user=platform_admin_user)
|
mock_get_user(mocker, user=platform_admin_user)
|
||||||
client.login(platform_admin_user, mocker, service_one)
|
client.login(platform_admin_user, mocker, service_one)
|
||||||
|
|||||||
Reference in New Issue
Block a user