User registration now creates user via api.

Verification flow is still to be completed.

Foreign key constraint on verify codes to user table removed.
This commit is contained in:
Adam Shimali
2016-01-19 22:47:42 +00:00
parent 35b711f956
commit b5cdf86b40
12 changed files with 210 additions and 166 deletions

View File

@@ -53,6 +53,19 @@ def create_test_user(state):
return user
def create_test_api_user(state):
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
}
user = User(user_data)
return user
def create_another_test_user(state):
user = User(name='Another Test User',
password='someOtherpassword',