send key_type = normal when creating api keys

This commit is contained in:
Leo Hemsted
2016-06-27 12:02:16 +01:00
parent 045e12102f
commit 6ce087a7b5
3 changed files with 44 additions and 56 deletions

View File

@@ -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)