mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-31 03:39:19 -04:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user