Make Users.email_address unique

This commit is contained in:
Rebecca Law
2015-12-17 14:57:26 +00:00
parent cbd47fe2ce
commit 7478f8a0f3
3 changed files with 30 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ def test_get_all_users_returns_all_users(notifications_admin, notifications_admi
role_id=1)
user3 = User(name='test three',
password='some2ndpassword',
email_address='test2@get_all.gov.uk',
email_address='test3@get_all.gov.uk',
mobile_number='+441234123412',
created_at=datetime.now(),
role_id=1)