test: Update more tests that had short passwords.
This commit is contained in:
@@ -50,7 +50,6 @@ PROGRAMS_UTILS_MODULE = 'openedx.core.djangoapps.programs.utils'
|
||||
class TestProgramProgressDetailView(ProgramsApiConfigMixin, SharedModuleStoreTestCase):
|
||||
"""Unit tests for the program progress detail page."""
|
||||
program_uuid = str(uuid4())
|
||||
password = 'test'
|
||||
url = reverse_lazy('learner_dashboard:v0:program_progress_detail', kwargs={'program_uuid': program_uuid})
|
||||
|
||||
@classmethod
|
||||
@@ -71,7 +70,7 @@ class TestProgramProgressDetailView(ProgramsApiConfigMixin, SharedModuleStoreTes
|
||||
super().setUp()
|
||||
|
||||
self.user = UserFactory()
|
||||
self.client.login(username=self.user.username, password=self.password)
|
||||
self.client.login(username=self.user.username, password=self.TEST_PASSWORD)
|
||||
|
||||
def assert_program_data_present(self, response):
|
||||
"""Verify that program data is present."""
|
||||
@@ -144,7 +143,6 @@ class TestProgramsView(SharedModuleStoreTestCase, ProgramCacheMixin):
|
||||
|
||||
enterprise_uuid = str(uuid4())
|
||||
program_uuid = str(uuid4())
|
||||
password = 'test'
|
||||
url = reverse_lazy('learner_dashboard:v0:program_list', kwargs={'enterprise_uuid': enterprise_uuid})
|
||||
|
||||
@classmethod
|
||||
@@ -184,7 +182,7 @@ class TestProgramsView(SharedModuleStoreTestCase, ProgramCacheMixin):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.client.login(username=self.user.username, password=self.password)
|
||||
self.client.login(username=self.user.username, password=self.TEST_PASSWORD)
|
||||
self.set_program_in_catalog_cache(self.program_uuid, self.program)
|
||||
ProgramEnrollmentFactory.create(
|
||||
user=self.user,
|
||||
|
||||
Reference in New Issue
Block a user