mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
API keys hooked up and working. All tests passing.
This commit is contained in:
@@ -57,14 +57,15 @@ def create_test_user(state):
|
||||
return user
|
||||
|
||||
|
||||
def create_test_api_user(state):
|
||||
def create_test_api_user(state, permissions={}):
|
||||
from app.notify_client.user_api_client import User
|
||||
user_data = {'id': 1,
|
||||
'name': 'Test User',
|
||||
'password': 'somepassword',
|
||||
'email_address': TEST_USER_EMAIL,
|
||||
'mobile_number': '+441234123412',
|
||||
'state': state
|
||||
'state': state,
|
||||
'permissions': permissions
|
||||
}
|
||||
user = User(user_data)
|
||||
return user
|
||||
|
||||
Reference in New Issue
Block a user