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

@@ -549,16 +549,6 @@ def mock_get_detailed_services(mocker, fake_uuid):
return mocker.patch('app.service_api_client.get_services', return_value=services)
@pytest.fixture(scope='function')
def mock_service_name_is_not_unique(mocker):
return mocker.patch('app.service_api_client.is_service_name_unique', return_value=False)
@pytest.fixture(scope='function')
def mock_service_name_is_unique(mocker):
return mocker.patch('app.service_api_client.is_service_name_unique', return_value=True)
@pytest.fixture(scope='function')
def mock_get_live_service(mocker, api_user_active):
def _get(service_id):
@@ -3348,16 +3338,6 @@ def mock_add_user_to_organisation(mocker, organisation_one, api_user_active):
return mocker.patch('app.user_api_client.add_user_to_organisation', side_effect=_add_user)
@pytest.fixture(scope='function')
def mock_organisation_name_is_not_unique(mocker):
return mocker.patch('app.organisations_client.is_organisation_name_unique', return_value=False)
@pytest.fixture(scope='function')
def mock_organisation_name_is_unique(mocker):
return mocker.patch('app.organisations_client.is_organisation_name_unique', return_value=True)
@pytest.fixture(scope='function')
def mock_update_organisation(mocker):
def _update_org(org, **kwargs):