Remove methods for checking service/org name uniqueness

We don’t use these now – instead we try to update the name and see if
it works or not.
This commit is contained in:
Chris Hill-Scott
2022-01-11 16:05:19 +00:00
parent a09af2acc8
commit b998b6bb20
4 changed files with 0 additions and 35 deletions

View File

@@ -319,14 +319,6 @@ class ServiceAPIClient(NotifyAdminAPIClient):
self._delete_template_cache_for_service(service_id)
return self.post(endpoint, data=data)
def is_service_name_unique(self, service_id, name, email_from):
"""
Check that the service name or email from are unique across all services.
"""
endpoint = "/service/unique"
params = {"service_id": service_id, "name": name, "email_from": email_from}
return self.get(url=endpoint, params=params)["result"]
# Temp access of service history data. Includes service and api key history
def get_service_history(self, service_id):
return self.get('/service/{0}/history'.format(service_id))['data']