Created api_key_api_client.

Implementation of create, revoke and show api keys for service.
These calls work, however we still need to fix the tests.
This commit is contained in:
Rebecca Law
2016-01-20 17:32:55 +00:00
parent 9784a9936c
commit 41c775cd68
6 changed files with 42 additions and 18 deletions

View File

@@ -210,3 +210,7 @@ def mock_register_user(mocker, user_data):
mock_class = mocker.patch('app.user_api_client.register_user')
mock_class.return_value = user
return mock_class
def mock_create_api_key(mocker, key_name):
mock_class = mocker.patch('app.api')