Ejemplo n.º 1
0
	def setUp(self):
		super(SearchAPITest, self).setUp()
		self.assignment_name = 'Hog Project'
		self.user = self.accounts['dummy_student2']
		self._course = make_fake_course(self.user)
		self._course.put()
		self._assign = make_fake_assignment(self._course, self.user)
		self._assign.name = self._assign.display_name = self.assignment_name
		self._assign.put()
		self._backup = make_fake_backup(self._assign, self.user)
		self._submission = make_fake_submission(self._backup)
		self._finalsubmission = make_fake_finalsubmission(self._submission, self._assign, self.user)
 def setUp(self):
     super(SearchAPITest, self).setUp()
     self.assignment_name = 'Hog Project'
     self.user = self.accounts['dummy_student2']
     self._course = make_fake_course(self.user)
     self._course.put()
     self._assign = make_fake_assignment(self._course, self.user)
     self._assign.name = self._assign.display_name = self.assignment_name
     self._assign.put()
     self._backup = make_fake_backup(self._assign, self.user)
     self._submission = make_fake_submission(self._backup)
     self._finalsubmission = make_fake_finalsubmission(
         self._submission, self._assign, self.user)
Ejemplo n.º 3
0
	def setUp(self):
		super(UtilsTestCase, self).setUp()
		self.user = self.accounts['dummy_admin']
		self.user1 = self.accounts['dummy_student']
		self.user2 = self.accounts['dummy_student2']
		self.user3 = self.accounts['dummy_student3']
		self.assignment_name = 'Hog Project'
		self._course = make_fake_course(self.user)
		self._course.put()
		self._assign = make_fake_assignment(self._course, self.user)
		self._assign.name = self._assign.display_name = self.assignment_name
		self._assign.put()
		self._backup = make_fake_backup(self._assign, self.user2)
		self._submission = make_fake_submission(self._backup)
Ejemplo n.º 4
0
 def setUp(self):
     super(UtilsTestCase, self).setUp()
     self.user = self.accounts['dummy_admin']
     self.user1 = self.accounts['dummy_student']
     self.user2 = self.accounts['dummy_student2']
     self.user3 = self.accounts['dummy_student3']
     self.assignment_name = 'Hog Project'
     self._course = make_fake_course(self.user)
     self._course.put()
     self._assign = make_fake_assignment(self._course, self.user)
     self._assign.name = self._assign.display_name = self.assignment_name
     self._assign.put()
     self._backup = make_fake_backup(self._assign, self.user2)
     self._submission = make_fake_submission(self._backup)
Ejemplo n.º 5
0
 def setUp(self):
     super(CourseAPITest, self).setUp()
     self.user = self.accounts["dummy_admin"]
     self.user1 = self.accounts["dummy_student"]
     self.user2 = self.accounts["dummy_student2"]
     self.user3 = self.accounts["dummy_student3"]
     self.assignment_name = "Hog Project"
     self._course = self.get_basic_instance()
     self._assign = make_fake_assignment(self._course, self.user)
     self._assign.name = self._assign.display_name = self.assignment_name
     self._assign.put()
     self._backup = make_fake_backup(self._assign, self.user2)
     self._submission = make_fake_submission(self._backup)
     self._version = self.get_basic_instance()
Ejemplo n.º 6
0
 def setUp(self):
     super(AnalyticsAPITest, self).setUp()
     self.user = self.accounts["dummy_admin"]
     self.user1 = self.accounts["dummy_student"]
     self.user2 = self.accounts["dummy_student2"]
     self.user3 = self.accounts["dummy_student3"]
     self.assignment_name = "Hog Project"
     self._course = make_fake_course(self.user)
     self._course.put()
     self._assign = make_fake_assignment(self._course, self.user)
     self._assign.name = self._assign.display_name = self.assignment_name
     self._assign.put()
     self._backup = make_fake_backup(self._assign, self.user2)
     self._submission = make_fake_submission(self._backup)
     self._finalsubmission = make_fake_finalsubmission(self._submission, self._assign, self.user2)
Ejemplo n.º 7
0
	def setUp(self):
		super(SubmissionAPITest, self).setUp()
		self.user = self.accounts['dummy_admin']
		self.user1 = self.accounts['dummy_student']
		self.user2 = self.accounts['dummy_student2']
		self.user3 = self.accounts['dummy_student3']
		self.assignment_name = 'Hog Project'
		self._course = make_fake_course(self.user)
		self._course.put()
		self._assign = make_fake_assignment(self._course, self.user)
		self._assign.name = self._assign.display_name = self.assignment_name
		self._assign.put()
		self._backup = make_fake_backup(self._assign, self.user2)
		self._submission = make_fake_submission(self._backup)
		self._finalsubmission = make_fake_finalsubmission(self._submission, self._assign, self.user2)
		self._score = models.Score(score=2).put()
		self._submission.score = [self._score.get()]
		self._submission.put()
 def setUp(self):
     super(AssignmentAPITest, self).setUp()
     self.user = self.accounts['dummy_admin']
     self.user1 = self.accounts['dummy_student']
     self.user2 = self.accounts['dummy_student2']
     self.user3 = self.accounts['dummy_student3']
     self.assignment_name = 'Hog Project'
     self._course = make_fake_course(self.user)
     self._course.put()
     self._assign = make_fake_assignment(self._course, self.user)
     self._assign.autograding_enabled = True
     self._assign.name = self._assign.display_name = self.assignment_name
     self._assign.put()
     self._group = make_fake_group(self._assign, self.user1, self.user2)
     self._backup = make_fake_backup(self._assign, self.user2)
     self._submission = make_fake_submission(self._backup)
     self._finalsubmission = make_fake_finalsubmission(
         self._submission, self._assign, self.user2)
Ejemplo n.º 9
0
 def setUp(self):
     super(SubmissionAPITest, self).setUp()
     self.user = self.accounts["dummy_admin"]
     self.user1 = self.accounts["dummy_student"]
     self.user2 = self.accounts["dummy_student2"]
     self.user3 = self.accounts["dummy_student3"]
     self.assignment_name = "Hog Project"
     self._course = make_fake_course(self.user)
     self._course.put()
     self._assign = make_fake_assignment(self._course, self.user)
     self._assign.name = self._assign.display_name = self.assignment_name
     self._assign.put()
     self._backup = make_fake_backup(self._assign, self.user2)
     self._submission = make_fake_submission(self._backup)
     self._finalsubmission = make_fake_finalsubmission(self._submission, self._assign, self.user2)
     self._score = models.Score(score=2, tag="composition").put()
     self._submission.score = [self._score.get()]
     self._submission.put()
Ejemplo n.º 10
0
 def setUp(self):
     super(AssignmentAPITest, self).setUp()
     self.user = self.accounts["dummy_admin"]
     self.user1 = self.accounts["dummy_student"]
     self.user2 = self.accounts["dummy_student2"]
     self.user3 = self.accounts["dummy_student3"]
     self.assignment_name = "Hog Project"
     self._course = make_fake_course(self.user)
     self._course.put()
     self._assign = make_fake_assignment(self._course, self.user)
     self._assign.autograding_enabled = True
     self._assign.autograding_key = "NotReallyAnAutograderKey"
     self._assign.name = self._assign.display_name = self.assignment_name
     self._assign.put()
     self._group = make_fake_group(self._assign, self.user1, self.user2)
     self._backup = make_fake_backup(self._assign, self.user2)
     self._submission = make_fake_submission(self._backup)
     self._finalsubmission = make_fake_finalsubmission(self._submission, self._assign, self.user2)