mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Make users.name unique.
This commit is contained in:
@@ -17,7 +17,7 @@ def test_get_all_users_returns_all_users(notifications_admin, notifications_admi
|
||||
mobile_number='+441234123412',
|
||||
created_at=datetime.now(),
|
||||
role_id=1)
|
||||
user3 = Users(name='test two',
|
||||
user3 = Users(name='test three',
|
||||
password='some2ndpassword',
|
||||
email_address='test2@get_all.gov.uk',
|
||||
mobile_number='+441234123412',
|
||||
|
||||
@@ -21,7 +21,7 @@ def test_insert_user_should_add_user(notifications_admin, notifications_admin_db
|
||||
|
||||
|
||||
def test_insert_user_with_role_that_does_not_exist_fails(notifications_admin, notifications_admin_db):
|
||||
user = Users(name='test insert',
|
||||
user = Users(name='role does not exist',
|
||||
password='somepassword',
|
||||
email_address='test@insert.gov.uk',
|
||||
mobile_number='+441234123412',
|
||||
|
||||
Reference in New Issue
Block a user