From 7adb02ee79cee35fb92932f6c47fdc8a9abd857f Mon Sep 17 00:00:00 2001 From: Ben Patterson Date: Fri, 9 Oct 2015 11:00:22 -0400 Subject: [PATCH] Make these tests more unique for multiprocessing. --- .../tests/lms/test_lms_cohorted_courseware_search.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/test/acceptance/tests/lms/test_lms_cohorted_courseware_search.py b/common/test/acceptance/tests/lms/test_lms_cohorted_courseware_search.py index 90cad93bff..e0739b4385 100644 --- a/common/test/acceptance/tests/lms/test_lms_cohorted_courseware_search.py +++ b/common/test/acceptance/tests/lms/test_lms_cohorted_courseware_search.py @@ -3,6 +3,7 @@ Test courseware search """ import os import json +import uuid from ..helpers import remove_file from ...pages.common.logout import LogoutPage @@ -57,15 +58,15 @@ class CoursewareSearchCohortTest(ContainerBase): self.content_group_b = "Content Group B" # Create a student who will be in "Cohort A" - self.cohort_a_student_username = "cohort_a_student" - self.cohort_a_student_email = "cohort_a_student@example.com" + self.cohort_a_student_username = "cohort_a_" + str(uuid.uuid4().hex)[:12] + self.cohort_a_student_email = self.cohort_a_student_username + "@example.com" StudioAutoAuthPage( self.browser, username=self.cohort_a_student_username, email=self.cohort_a_student_email, no_login=True ).visit() # Create a student who will be in "Cohort B" - self.cohort_b_student_username = "cohort_b_student" - self.cohort_b_student_email = "cohort_b_student@example.com" + self.cohort_b_student_username = "cohort_b_" + str(uuid.uuid4().hex)[:12] + self.cohort_b_student_email = self.cohort_b_student_username + "@example.com" StudioAutoAuthPage( self.browser, username=self.cohort_b_student_username, email=self.cohort_b_student_email, no_login=True ).visit()