Selenium - cleanup duplication of DEFAULT_PASSWORD variable.

This commit is contained in:
John Chilton
2017-10-02 09:50:37 -04:00
parent 28c8644f02
commit afaea964cf
2 changed files with 3 additions and 7 deletions
-3
View File
@@ -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
+3 -4
View File
@@ -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]