コード例 #1
0
ファイル: test_rubric.py プロジェクト: bmun/huxley
 def setUp(self):
     self.advisor = models.new_user(username='******', password='******')
     self.chair = models.new_user(
         username='******', password='******', user_type=User.TYPE_CHAIR)
     self.delegate_user = models.new_user(
         username='******',
         password='******',
         user_type=User.TYPE_DELEGATE)
     self.delegate_user_2 = models.new_user(
         username='******',
         password='******',
         user_type=User.TYPE_DELEGATE)
     self.school = models.new_school(user=self.advisor)
     self.registration = models.new_registration(school=self.school)
     self.rubric = models.new_rubric()
     self.committee = models.new_committee(
         user=self.chair, rubric=self.rubric)
     self.paper = models.new_position_paper()
     self.assignment = models.new_assignment(
         registration=self.registration,
         committee=self.committee,
         paper=self.paper)
     self.delegate = models.new_delegate(
         user=self.delegate_user,
         assignment=self.assignment,
         school=self.school)
コード例 #2
0
 def setUp(self):
     self.advisor = models.new_user(username='******', password='******')
     self.chair = models.new_user(username='******',
                                  password='******',
                                  user_type=User.TYPE_CHAIR)
     self.delegate_user = models.new_user(username='******',
                                          password='******',
                                          user_type=User.TYPE_DELEGATE)
     self.delegate_user_2 = models.new_user(username='******',
                                            password='******',
                                            user_type=User.TYPE_DELEGATE)
     self.school = models.new_school(user=self.advisor)
     self.registration = models.new_registration(school=self.school)
     self.committee = models.new_committee(user=self.chair)
     self.paper = models.new_position_paper()
     self.assignment = models.new_assignment(registration=self.registration,
                                             committee=self.committee,
                                             paper=self.paper)
     self.delegate = models.new_delegate(user=self.delegate_user,
                                         assignment=self.assignment,
                                         school=self.school)
コード例 #3
0
 def get_test_object(cls):
     return models.new_position_paper()
コード例 #4
0
ファイル: test_position_paper.py プロジェクト: bmun/huxley
 def get_test_object(cls):
     return models.new_position_paper()