def setUp(self) -> None: self.config_for_test() self.create_new_and_preexisting_students() self.unit = unit_factory() self.graded_activity = self.unit.initial_work self.review_activity = self.unit.review self.column_names = ['taco']
def setUp(self): self.config_for_test() self.unit = unit_factory() self.course = MagicMock() self.create_new_and_preexisting_students() self.activity = self.unit.discussion_forum self.obj = DiscussionRepository(activity=self.activity, course=self.course)
def setUp(self): self.config_for_test() self.unit = unit_factory() self.activity = self.unit.discussion_forum self.activity_id = self.activity.id self.dao = SqliteDAO() self.session = self.dao.session self.create_new_and_preexisting_students() # self.create_preexisting_review_pairings(self.activity_id, self.students) # ids of authors previously notified self.previously_submitted = [] # ids of reviewers corresponding to previously notified authors self.obj = SubmissionRecordRepository(self.dao, self.activity)
def setUp(self): self.config_for_test() self.unit = unit_factory() self.activity = self.unit.discussion_review # student recieiving the message self.author = student_factory() self.reviewer = student_factory() # This would be metareview feedback on the review self.work = fake.text() self.studentRepo = StudentRepository() self.studentRepo.get_student = MagicMock(return_value=self.reviewer) self.contentRepo = ContentRepositoryMock() self.contentRepo.get_formatted_work_by = MagicMock( return_value=self.work) self.review_assign = MagicMock(assessor_id=self.reviewer.id, assessee_id=self.author.id) self.statusRepo = create_autospec(StatusRepository)
def setUp(self): self.config_for_test() self.student = student_factory() self.unit = unit_factory()
def setUp(self): self.config_for_test() self.course = MagicMock() self.unit = unit_factory()