Mercurial > kallithea
changeset 5206:414142964b62
tests: remove hardcoded test e-mail addresses
author | Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> |
---|---|
date | Sat, 20 Jun 2015 22:31:44 +0200 |
parents | 01abb838b7a8 |
children | 222a36d30368 |
files | kallithea/tests/__init__.py kallithea/tests/functional/test_login.py kallithea/tests/functional/test_my_account.py |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/__init__.py Sat Jun 20 22:26:49 2015 +0200 +++ b/kallithea/tests/__init__.py Sat Jun 20 22:31:44 2015 +0200 @@ -70,7 +70,7 @@ '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',
--- a/kallithea/tests/functional/test_login.py Sat Jun 20 22:26:49 2015 +0200 +++ b/kallithea/tests/functional/test_login.py Sat Jun 20 22:31:44 2015 +0200 @@ -198,7 +198,7 @@ {'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 @@ {'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']
--- a/kallithea/tests/functional/test_my_account.py Sat Jun 20 22:26:49 2015 +0200 +++ b/kallithea/tests/functional/test_my_account.py Sat Jun 20 22:31:44 2015 +0200 @@ -149,7 +149,7 @@ 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,