mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Pass service_id through to API '/service/unique' endpoint
Notifications-api now needs the service_id to check the uniqueness of the service name when trying to change it. This is to allow a user to successfully change the pluralization or the case of their service name.
This commit is contained in:
@@ -357,7 +357,7 @@ def test_should_not_allow_duplicate_names(
|
||||
assert response.status_code == 200
|
||||
resp_data = response.get_data(as_text=True)
|
||||
assert 'This service name is already in use' in resp_data
|
||||
app.service_api_client.is_service_name_unique.assert_called_once_with('SErvICE TWO', 'service.two')
|
||||
app.service_api_client.is_service_name_unique.assert_called_once_with(service_id, 'SErvICE TWO', 'service.two')
|
||||
|
||||
|
||||
def test_should_show_service_name_confirmation(
|
||||
|
||||
Reference in New Issue
Block a user