Make these tests more unique for multiprocessing.

This commit is contained in:
Ben Patterson
2015-10-09 11:00:22 -04:00
parent 69c47e0951
commit 7adb02ee79

View File

@@ -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()