mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Strip the trailing comma on the first line of an address block.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user