# HG changeset patch # User Thomas De Schampheleire # Date 2015-06-20 22:31:44 # Node ID 414142964b623fac82a8803eb9c6d6ba49888b25 # Parent 01abb838b7a8cb6762cd9ac49db818f1f30d2f59 tests: remove hardcoded test e-mail addresses diff --git a/kallithea/tests/__init__.py b/kallithea/tests/__init__.py --- a/kallithea/tests/__init__.py +++ b/kallithea/tests/__init__.py @@ -70,7 +70,7 @@ __all__ = [ 'SkipTest', 'ldap_lib_installed', 'BaseTestCase', 'init_stack', 'TESTS_TMP_PATH', 'HG_REPO', 'GIT_REPO', 'NEW_HG_REPO', 'NEW_GIT_REPO', 'HG_FORK', 'GIT_FORK', 'TEST_USER_ADMIN_LOGIN', 'TEST_USER_ADMIN_PASS', - 'TEST_USER_REGULAR_LOGIN', 'TEST_USER_REGULAR_PASS', + 'TEST_USER_ADMIN_EMAIL', 'TEST_USER_REGULAR_LOGIN', 'TEST_USER_REGULAR_PASS', 'TEST_USER_REGULAR_EMAIL', 'TEST_USER_REGULAR2_LOGIN', 'TEST_USER_REGULAR2_PASS', 'TEST_USER_REGULAR2_EMAIL', 'TEST_HG_REPO', 'TEST_HG_REPO_CLONE', 'TEST_HG_REPO_PULL', 'TEST_GIT_REPO', diff --git a/kallithea/tests/functional/test_login.py b/kallithea/tests/functional/test_login.py --- a/kallithea/tests/functional/test_login.py +++ b/kallithea/tests/functional/test_login.py @@ -198,7 +198,7 @@ class TestLoginController(TestController {'username': 'test_admin_0', 'password': 'test12', 'password_confirmation': 'test12', - 'email': 'test_admin@mail.com', + 'email': TEST_USER_ADMIN_EMAIL, 'firstname': 'test', 'lastname': 'test'}) @@ -210,7 +210,7 @@ class TestLoginController(TestController {'username': 'test_admin_1', 'password': 'test12', 'password_confirmation': 'test12', - 'email': 'TesT_Admin@mail.COM', + 'email': TEST_USER_ADMIN_EMAIL.title(), 'firstname': 'test', 'lastname': 'test'}) msg = validators.UniqSystemEmail()()._messages['email_taken'] diff --git a/kallithea/tests/functional/test_my_account.py b/kallithea/tests/functional/test_my_account.py --- a/kallithea/tests/functional/test_my_account.py +++ b/kallithea/tests/functional/test_my_account.py @@ -149,7 +149,7 @@ class TestMyAccountController(TestContro def test_my_account_update_err_email_exists(self): self.log_user() - new_email = 'test_regular@mail.com' # already exisitn email + new_email = TEST_USER_REGULAR_EMAIL # already existing email response = self.app.post(url('my_account'), params=dict( username=TEST_USER_ADMIN_LOGIN,