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

@@ -319,7 +319,7 @@ class NotificationListAPIViewTest(APITestCase):
"""
def setUp(self):
self.TEST_PASSWORD = "password"
self.TEST_PASSWORD = 'Password1234'
self.user = UserFactory(password=self.TEST_PASSWORD)
self.url = reverse('notifications-list')
@@ -569,7 +569,7 @@ class MarkNotificationsSeenAPIViewTestCase(APITestCase):
"""
def setUp(self):
self.TEST_PASSWORD = "password"
self.TEST_PASSWORD = 'Password1234'
self.user = UserFactory(password=self.TEST_PASSWORD)
# Create some sample notifications for the user
@@ -602,7 +602,7 @@ class NotificationReadAPIViewTestCase(APITestCase):
"""
def setUp(self):
self.TEST_PASSWORD = "password"
self.TEST_PASSWORD = 'Password1234'
self.user = UserFactory(password=self.TEST_PASSWORD)
self.url = reverse('notifications-read')
self.client.login(username=self.user.username, password=self.TEST_PASSWORD)

View File

@@ -31,7 +31,7 @@ class AuthenticateTestCase(TestCase):
def setUp(self):
super().setUp()
self.TEST_PASSWORD = 'password'
self.TEST_PASSWORD = 'Password1234'
self.user = UserFactory.create(
username='darkhelmet',
password=self.TEST_PASSWORD,
@@ -57,7 +57,7 @@ class CustomValidationTestCase(TestCase):
"""
def setUp(self):
super().setUp()
self.TEST_PASSWORD = "password"
self.TEST_PASSWORD = 'Password1234'
self.user = UserFactory.create(
username='darkhelmet',
password=self.TEST_PASSWORD,
@@ -89,7 +89,7 @@ class CustomAuthorizationViewTestCase(TestCase):
"""
def setUp(self):
super().setUp()
self.TEST_PASSWORD = 'password'
self.TEST_PASSWORD = 'Password1234'
self.dot_adapter = adapters.DOTAdapter()
self.user = UserFactory(password=self.TEST_PASSWORD)
self.client.login(username=self.user.username, password=self.TEST_PASSWORD)

View File

@@ -86,7 +86,7 @@ class _DispatchingViewTestCase(TestCase):
"""
def setUp(self):
super().setUp()
self.TEST_PASSWORD = "password"
self.TEST_PASSWORD = 'Password1234'
self.dot_adapter = adapters.DOTAdapter()
self.user = UserFactory(password=self.TEST_PASSWORD)
self.dot_app = self.dot_adapter.create_public_client(

View File

@@ -36,7 +36,7 @@ class TestSafeSessionProcessRequest(TestSafeSessionsLogMixin, TestCase):
self.user = UserFactory.create()
self.addCleanup(set_current_request, None)
self.request = get_mock_request()
self.TEST_PASSWORD = 'password'
self.TEST_PASSWORD = 'Password1234'
def assert_response(self, safe_cookie_data=None, success=True):
"""
@@ -251,7 +251,7 @@ class TestSafeSessionMiddleware(TestSafeSessionsLogMixin, CacheIsolationTestCase
def setUp(self):
super().setUp()
self.TEST_PASSWORD = 'password'
self.TEST_PASSWORD = 'Password1234'
self.user = UserFactory.create(password=self.TEST_PASSWORD)
self.addCleanup(set_current_request, None)
self.request = get_mock_request()

View File

@@ -24,7 +24,7 @@ class TestComprehensiveThemeLMS(TestCase):
Clear static file finders cache and register cleanup methods.
"""
super().setUp()
self.TEST_PASSWORD = 'password'
self.TEST_PASSWORD = 'Password1234'
self.user = UserFactory(password=self.TEST_PASSWORD)
# Clear the internal staticfiles caches, to get test isolation.

View File

@@ -13,7 +13,7 @@ from openedx.core.djangoapps.theming.models import SiteTheme
THEMING_ADMIN_URL = '/theming/admin'
TEST_THEME_NAME = 'test-theme'
TEST_PASSWORD = 'password'
TEST_PASSWORD = 'Password1234'
class TestThemingViews(TestCase):

View File

@@ -88,7 +88,7 @@ class TestAccountApi(UserSettingsEventTestMixin, EmailTemplateTagMixin, CreateAc
This includes the specific types of error raised, and default behavior when optional arguments
are not specified.
"""
password = "password"
password = 'Password1234'
def setUp(self):
super().setUp()

View File

@@ -33,7 +33,7 @@ class UserAPITestCase(ApiTestCase):
Parent test case for User API workflow coverage
"""
LIST_URI = USER_LIST_URI
TEST_PASSWORD = "password"
TEST_PASSWORD = 'Password1234'
def get_uri_for_user(self, target_user):
"""Given a user object, get the URI for the corresponding resource"""

View File

@@ -23,7 +23,7 @@ class VerificationViewTestsMixinBase:
""" Base class for the tests on verification views """
VIEW_NAME = None
CREATED_AT = datetime.datetime.strptime(FROZEN_TIME, '%Y-%m-%d')
PASSWORD = 'password'
PASSWORD = 'Password1234'
def setUp(self):
freezer = freezegun.freeze_time(FROZEN_TIME)

View File

@@ -58,7 +58,7 @@ class AuthAndScopesTestMixin:
self.student.
"""
default_scopes = None
user_password = 'password'
user_password = 'Password1234'
def setUp(self):
super().setUp()

View File

@@ -192,11 +192,11 @@ class TestPasswordChange(CreateAccountMixin, CacheIsolationTestCase):
UserFactory.create(
username='edx',
email='edx@example.com',
password='password',
password='Password1234',
is_superuser=is_superuser,
is_staff=is_staff,
)
self.client.login(username='edx', password='password')
self.client.login(username='edx', password='Password1234')
response = self._change_password_from_support(email_from_support_tools=self.OLD_EMAIL)
assert response.status_code == 200

View File

@@ -20,7 +20,7 @@ from xmodule.modulestore.tests.factories import CourseFactory # lint-amnesty, p
from .helpers import add_course_mode
TEST_PASSWORD = 'password'
TEST_PASSWORD = 'Password1234'
TEST_VERIFICATION_SOCK_LOCATOR = '<div class="verification-sock"'

View File

@@ -17,7 +17,7 @@ from xmodule.partitions.partitions_service import PartitionService # lint-amnes
from .helpers import add_course_mode
from .test_course_sock import TEST_VERIFICATION_SOCK_LOCATOR
TEST_PASSWORD = 'password'
TEST_PASSWORD = 'Password1234'
class MasqueradeTestBase(SharedModuleStoreTestCase, MasqueradeMixin):

View File

@@ -21,8 +21,8 @@ class TestCrowdsourceHinter(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
Create the test environment with the crowdsourcehinter xblock.
"""
STUDENTS = [
{'email': 'view@test.com', 'password': 'password1234'},
{'email': 'view2@test.com', 'password': 'password1234'}
{'email': 'view@test.com', 'password': 'Password1234'},
{'email': 'view2@test.com', 'password': 'Password1234'}
]
XBLOCK_NAMES = ['crowdsourcehinter']

View File

@@ -27,8 +27,8 @@ class TestRecommender(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
Check that Recommender state is saved properly
"""
STUDENTS = [
{'email': 'view@test.com', 'password': 'password1234'},
{'email': 'view2@test.com', 'password': 'password1234'}
{'email': 'view@test.com', 'password': 'Password1234'},
{'email': 'view2@test.com', 'password': 'Password1234'}
]
XBLOCK_NAMES = ['recommender', 'recommender_second']

View File

@@ -282,9 +282,9 @@ class XBlockStudentTestCaseMixin:
Creates a default set of students for XBlock tests
'''
student_list = [
{'email': 'alice@test.edx.org', 'password': 'password1234'},
{'email': 'bob@test.edx.org', 'password': 'password1234'},
{'email': 'eve@test.edx.org', 'password': 'password1234'},
{'email': 'alice@test.edx.org', 'password': 'Password1234'},
{'email': 'bob@test.edx.org', 'password': 'Password1234'},
{'email': 'eve@test.edx.org', 'password': 'Password1234'},
]
def setUp(self):