test: Update to an even longer password.

This commit is contained in:
Feanil Patel
2023-10-11 13:44:09 -04:00
parent 1e2ea85372
commit 64e91d4080
47 changed files with 88 additions and 88 deletions

View File

@@ -35,7 +35,7 @@ from common.djangoapps.student.roles import OrgStaffRole
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
from openedx.core.djangoapps.content.course_overviews.tests.factories import CourseOverviewFactory
TEST_PASSWORD = 'password'
TEST_PASSWORD = 'Password1234'
class GroupFactory(DjangoModelFactory): # lint-amnesty, pylint: disable=missing-class-docstring
@@ -81,7 +81,7 @@ class UserFactory(DjangoModelFactory): # lint-amnesty, pylint: disable=missing-
model = User
django_get_or_create = ('email', 'username')
_DEFAULT_PASSWORD = 'password'
_DEFAULT_PASSWORD = 'Password1234'
username = factory.Sequence('robot{}'.format)
email = factory.Sequence('robot+test+{}@edx.org'.format)

View File

@@ -324,9 +324,9 @@ class LoginFailuresAdminTest(TestCase):
def setUpClass(cls):
"""Setup class"""
super().setUpClass()
cls.user = UserFactory.create(username='§', is_staff=True, is_superuser=True)
cls.TEST_PASSWORD = 'Password1234'
cls.user = UserFactory.create(username='§', password=cls.TEST_PASSWORD, is_staff=True, is_superuser=True)
cls.user.save()
cls.TEST_PASSWORD = 'password'
def setUp(self):
"""Setup."""

View File

@@ -136,7 +136,7 @@ class ActivationEmailTests(EmailTemplateTagMixin, CacheIsolationTestCase):
params = {
'username': 'test_user',
'email': 'test_user@example.com',
'password': 'long_password',
'password': 'Password1234',
'name': 'Test User',
'honor_code': True,
'terms_of_service': True
@@ -319,7 +319,7 @@ class EmailChangeRequestTests(EventTestMixin, EmailTemplateTagMixin, CacheIsolat
self.new_email = 'new.email@edx.org'
self.req_factory = RequestFactory()
self.request = self.req_factory.post('unused_url', data={
'password': 'test',
'password': 'Password1234',
'new_email': self.new_email
})
self.request.user = self.user
@@ -628,7 +628,7 @@ class SecondaryEmailChangeRequestTests(EventTestMixin, EmailTemplateTagMixin, Ca
self.new_secondary_email = 'new.secondary.email@edx.org'
self.req_factory = RequestFactory()
self.request = self.req_factory.post('unused_url', data={
'password': 'test',
'password': 'Password1234',
'new_email': self.new_secondary_email
})
self.request.user = self.user

View File

@@ -260,7 +260,7 @@ class TestRegisterRetiredUsername(TestCase):
'username': 'username',
'email': 'foo_bar' + '@bar.com',
'name': 'foo bar',
'password': '12345678',
'password': 'Password1234',
'terms_of_service': 'true',
'honor_code': 'true',
}

View File

@@ -43,7 +43,7 @@ class UserStandingTest(TestCase):
(self.non_staff, self.non_staff_client),
(self.admin, self.admin_client),
]:
client.login(username=user.username, password='password')
client.login(username=user.username, password='Password1234')
UserStandingFactory.create(
user=self.bad_user,

View File

@@ -481,7 +481,7 @@ class IntegrationTestMixin(testutil.TestCase, test.TestCase, HelperMixin):
# The AJAX on the page will log them in:
ajax_login_response = self.client.post(
reverse('user_api_login_session', kwargs={'api_version': 'v1'}),
{'email': self.user.email, 'password': 'password'}
{'email': self.user.email, 'password': 'Password1234'}
)
assert ajax_login_response.status_code == 200
# Then the AJAX will finish the third party auth:

View File

@@ -14,7 +14,7 @@ from common.djangoapps.third_party_auth.tests import testutil
from common.djangoapps.third_party_auth.tests.utils import skip_unless_thirdpartyauth
TEST_PASSWORD = 'password'
TEST_PASSWORD = 'Password1234'
# This is necessary because cms does not implement third party auth