mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Selenium - cleanup duplication of DEFAULT_PASSWORD variable.
This commit is contained in:
@@ -49,9 +49,6 @@ GALAXY_TEST_EXTERNAL_FROM_SELENIUM = os.environ.get("GALAXY_TEST_EXTERNAL_FROM_S
|
||||
# Auto-retry selenium tests this many times.
|
||||
GALAXY_TEST_SELENIUM_RETRIES = int(os.environ.get("GALAXY_TEST_SELENIUM_RETRIES", "0"))
|
||||
|
||||
# Test case data
|
||||
DEFAULT_PASSWORD = '123456'
|
||||
|
||||
|
||||
try:
|
||||
from nose.tools import nottest
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from .framework import (
|
||||
DEFAULT_PASSWORD,
|
||||
selenium_test,
|
||||
SeleniumTestCase
|
||||
)
|
||||
@@ -33,7 +32,7 @@ class RegistrationTestCase(SeleniumTestCase):
|
||||
def test_reregister_email_fails(self):
|
||||
self.home()
|
||||
email = self._get_random_email()
|
||||
password = DEFAULT_PASSWORD
|
||||
password = self.default_password
|
||||
confirm = password
|
||||
username = email.split("@")[0]
|
||||
self.register(email, password, username, confirm)
|
||||
@@ -47,7 +46,7 @@ class RegistrationTestCase(SeleniumTestCase):
|
||||
self.home()
|
||||
email1 = self._get_random_email()
|
||||
email2 = self._get_random_email()
|
||||
password = DEFAULT_PASSWORD
|
||||
password = self.default_password
|
||||
confirm = password
|
||||
username = email1.split("@")[0]
|
||||
self.register(email1, password, username, confirm)
|
||||
@@ -60,7 +59,7 @@ class RegistrationTestCase(SeleniumTestCase):
|
||||
def test_bad_emails(self):
|
||||
bad_emails = ['bob', 'bob@', 'bob@idontwanttocleanup', 'bob.cantmakeme']
|
||||
good_email = self._get_random_email()
|
||||
password = DEFAULT_PASSWORD
|
||||
password = self.default_password
|
||||
confirm = password
|
||||
username = good_email.split("@")[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user