Strip the trailing comma on the first line of an address block.

This commit is contained in:
Rebecca Law
2020-01-08 11:22:14 +00:00
parent f7b3f9b06a
commit 9d1f92a752
5 changed files with 65 additions and 40 deletions

View File

@@ -1791,6 +1791,7 @@ def mock_get_notifications(
return notification_json(
service_id,
template=template,
to=to,
rows=rows,
job=job,
with_links=True if count_pages is None else count_pages,
@@ -2879,6 +2880,14 @@ def mock_create_service_inbound_api(mocker):
return mocker.patch('app.service_api_client.create_service_inbound_api', side_effect=_create_service_inbound_api)
@pytest.fixture(scope='function')
def mock_delete_service_inbound_api(mocker):
return mocker.patch(
'app.service_api_client.delete_service_callback_api',
side_effect=lambda service_id: None
)
@pytest.fixture(scope='function')
def mock_update_service_inbound_api(mocker):
def _update_service_inbound_api(service_id, url, bearer_token, user_id, inbound_api_id):