Skip to content

Commit 64e91d4

Browse files
committed
test: Update to an even longer password.
1 parent 1e2ea85 commit 64e91d4

File tree

47 files changed

+88
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+88
-88
lines changed

cms/djangoapps/contentstore/tests/test_i18n.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def setUp(self):
184184

185185
self.uname = 'testuser'
186186
self.email = '[email protected]'
187-
self.password = 'password'
187+
self.password = 'Password1234'
188188

189189
# Create the use so we can log them in.
190190
self.user = UserFactory.create(username=self.uname, email=self.email, password=self.password)

common/djangoapps/student/tests/factories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
3636
from openedx.core.djangoapps.content.course_overviews.tests.factories import CourseOverviewFactory
3737

38-
TEST_PASSWORD = 'password'
38+
TEST_PASSWORD = 'Password1234'
3939

4040

4141
class GroupFactory(DjangoModelFactory): # lint-amnesty, pylint: disable=missing-class-docstring
@@ -81,7 +81,7 @@ class Meta:
8181
model = User
8282
django_get_or_create = ('email', 'username')
8383

84-
_DEFAULT_PASSWORD = 'password'
84+
_DEFAULT_PASSWORD = 'Password1234'
8585

8686
username = factory.Sequence('robot{}'.format)
8787
email = factory.Sequence('robot+test+{}@edx.org'.format)

common/djangoapps/student/tests/test_admin_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ class LoginFailuresAdminTest(TestCase):
324324
def setUpClass(cls):
325325
"""Setup class"""
326326
super().setUpClass()
327-
cls.user = UserFactory.create(username='§', is_staff=True, is_superuser=True)
327+
cls.TEST_PASSWORD = 'Password1234'
328+
cls.user = UserFactory.create(username='§', password=cls.TEST_PASSWORD, is_staff=True, is_superuser=True)
328329
cls.user.save()
329-
cls.TEST_PASSWORD = 'password'
330330

331331
def setUp(self):
332332
"""Setup."""

common/djangoapps/student/tests/test_email.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _create_account(self):
136136
params = {
137137
'username': 'test_user',
138138
'email': '[email protected]',
139-
'password': 'long_password',
139+
'password': 'Password1234',
140140
'name': 'Test User',
141141
'honor_code': True,
142142
'terms_of_service': True
@@ -319,7 +319,7 @@ def setUp(self, tracker='common.djangoapps.student.views.management.tracker'):
319319
self.new_email = '[email protected]'
320320
self.req_factory = RequestFactory()
321321
self.request = self.req_factory.post('unused_url', data={
322-
'password': 'test',
322+
'password': 'Password1234',
323323
'new_email': self.new_email
324324
})
325325
self.request.user = self.user
@@ -628,7 +628,7 @@ def setUp(self, tracker='common.djangoapps.student.views.management.tracker'):
628628
self.new_secondary_email = '[email protected]'
629629
self.req_factory = RequestFactory()
630630
self.request = self.req_factory.post('unused_url', data={
631-
'password': 'test',
631+
'password': 'Password1234',
632632
'new_email': self.new_secondary_email
633633
})
634634
self.request.user = self.user

common/djangoapps/student/tests/test_retirement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def setUp(self):
260260
'username': 'username',
261261
'email': 'foo_bar' + '@bar.com',
262262
'name': 'foo bar',
263-
'password': '12345678',
263+
'password': 'Password1234',
264264
'terms_of_service': 'true',
265265
'honor_code': 'true',
266266
}

common/djangoapps/student/tests/test_userstanding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setUp(self):
4343
(self.non_staff, self.non_staff_client),
4444
(self.admin, self.admin_client),
4545
]:
46-
client.login(username=user.username, password='password')
46+
client.login(username=user.username, password='Password1234')
4747

4848
UserStandingFactory.create(
4949
user=self.bad_user,

common/djangoapps/third_party_auth/tests/specs/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def _test_login(self):
481481
# The AJAX on the page will log them in:
482482
ajax_login_response = self.client.post(
483483
reverse('user_api_login_session', kwargs={'api_version': 'v1'}),
484-
{'email': self.user.email, 'password': 'password'}
484+
{'email': self.user.email, 'password': 'Password1234'}
485485
)
486486
assert ajax_login_response.status_code == 200
487487
# Then the AJAX will finish the third party auth:

common/djangoapps/third_party_auth/tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from common.djangoapps.third_party_auth.tests.utils import skip_unless_thirdpartyauth
1515

1616

17-
TEST_PASSWORD = 'password'
17+
TEST_PASSWORD = 'Password1234'
1818

1919

2020
# This is necessary because cms does not implement third party auth

lms/djangoapps/ccx/api/v0/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from lms.djangoapps.instructor.enrollment import enroll_email, get_email_params
3434
from openedx.core.lib.courses import get_course_by_id
3535

36-
USER_PASSWORD = 'password'
36+
USER_PASSWORD = 'Password1234'
3737

3838

3939
class CcxRestApiTest(CcxTestCase, APITestCase):

lms/djangoapps/ccx/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def setUp(self):
129129
ccx = self.make_ccx()
130130
ccx_key = CCXLocator.from_course_locator(self.course.id, ccx.id)
131131
self.url = reverse('ccx_coach_dashboard', kwargs={'course_id': ccx_key})
132-
self.TEST_PASSWORD = 'password'
132+
self.TEST_PASSWORD = 'Password1234'
133133

134134
def test_staff_access_coach_dashboard(self):
135135
"""

0 commit comments

Comments
 (0)