From e38df7cda1c3e81218d1a532de3dbd3fa8c05808 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 17 Dec 2015 16:16:12 +0000 Subject: [PATCH] 109898688: Fix unit test --- tests/app/main/dao/test_verify_codes_dao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/main/dao/test_verify_codes_dao.py b/tests/app/main/dao/test_verify_codes_dao.py index 1b95da1f5..de9bb404b 100644 --- a/tests/app/main/dao/test_verify_codes_dao.py +++ b/tests/app/main/dao/test_verify_codes_dao.py @@ -3,7 +3,7 @@ from pytest import fail from app.main.dao import verify_codes_dao from app.main.encryption import check_hash -from tests.app.main import create_test_user +from tests.app.main import create_test_user, create_another_test_user def test_insert_new_code_and_get_it_back(notifications_admin, notifications_admin_db, notify_db_session): @@ -68,7 +68,7 @@ def test_should_return_all_unused_code_when_there_are_many(notifications_admin, notifications_admin_db, notify_db_session): user = create_test_user('pending') - another_user = create_test_user('active') + another_user = create_another_test_user('active') verify_codes_dao.add_code(user_id=user.id, code='12345', code_type='sms') id = verify_codes_dao.add_code(user_id=user.id, code='09876', code_type='email') verify_codes_dao.use_code(id)