mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
send key_type = normal when creating api keys
This commit is contained in:
@@ -701,8 +701,7 @@ def mock_get_all_users_from_api(mocker):
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_create_api_key(mocker):
|
||||
def _create(service_id, key_name):
|
||||
import uuid
|
||||
return {'data': str(generate_uuid())}
|
||||
return str(generate_uuid())
|
||||
|
||||
return mocker.patch('app.api_key_api_client.create_api_key', side_effect=_create)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user