diff options
author | Denis Costa <deniscostadsc@gmail.com> | 2017-04-13 16:43:12 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 16:43:12 -0300 |
commit | 1fcb0c8fb399647bf86ef1b7c6771b3a29f67aa9 (patch) | |
tree | 57afe993d19006c223c767d37acc4cd4b9426581 /service/test/functional/features/environment.py | |
parent | 9203d8e62dd5bd3c9456629e9b336a0b89fbd502 (diff) | |
parent | ec00906375cd35220ee694264dce9c4ba5cdbcc9 (diff) |
Merge pull request #1052 from pixelated/email-recovery-code
[#927] Email recovery code
Diffstat (limited to 'service/test/functional/features/environment.py')
-rw-r--r-- | service/test/functional/features/environment.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py index f1cc0e44..bc2e1283 100644 --- a/service/test/functional/features/environment.py +++ b/service/test/functional/features/environment.py @@ -52,12 +52,14 @@ def before_all(context): if not context.host.startswith('http'): context.host = 'https://{}'.format(context.host) - hostname = urlparse(context.host).hostname - context.signup_url = 'https://{}/signup'.format(hostname) - context.login_url = 'https://mail.{}/login'.format(hostname) - context.backup_account_url = 'https://mail.{}/backup-account'.format(hostname) - context.account_recovery_url = 'https://mail.{}/account-recovery'.format(hostname) + context.hostname = urlparse(context.host).hostname + context.signup_url = 'https://{}/signup'.format(context.hostname) + context.inbox_url = 'https://mail.{}'.format(context.hostname) + context.login_url = 'https://mail.{}/login'.format(context.hostname) + context.backup_account_url = 'https://mail.{}/backup-account'.format(context.hostname) + context.account_recovery_url = 'https://mail.{}/account-recovery'.format(context.hostname) context.username = 'testuser_{}'.format(uuid.uuid4()) + context.user_email = '{}@{}'.format(context.username, context.hostname) if 'localhost' in context.host: _mock_user_agent(context) @@ -68,8 +70,9 @@ def before_all(context): def before_tag(context, tag): - if tag == "smoke": + if tag == "require_user": context.username = 'testuser_{}'.format(uuid.uuid4()) + context.user_email = '{}@{}'.format(context.username, context.hostname) utils.create_user(context) |