Пример #1
0
 def createStudent(self, email, n_proposals):
   """Creates a student with proposals.
   """
   student = GSoCProfileHelper(self.gsoc, self.dev_test)
   student.createOtherUser(email)
   student.createStudentWithProposals(self.org, self.mentor.profile,
                                      n=n_proposals)
   student.notificationSettings()
   return student
Пример #2
0
 def createStudent(self, email, n_proposals):
   """Creates a student with proposals.
   """
   student = GSoCProfileHelper(self.gsoc, self.dev_test)
   student.createOtherUser(email)
   student.createStudentWithProposals(self.org, self.mentor.profile,
                                      n=n_proposals)
   student.notificationSettings()
   return student
Пример #3
0
    def createStudent(self):
        """Creates two new students the first one has a duplicate the second one has
    none.
    """
        profile_helper = GSoCProfileHelper(self.gsoc, self.dev_test)
        profile_helper.createOtherUser('*****@*****.**')
        self.student1 = profile_helper.createStudentWithProposals(
            self.org, self.mentor, 3)

        proposals = GSoCProposal.all().ancestor(self.student1).fetch(2)
        for p in proposals:
            p.accept_as_project = True
            p.put()

        profile_helper = GSoCProfileHelper(self.gsoc, self.dev_test)
        profile_helper.createOtherUser('*****@*****.**')
        self.student2 = profile_helper.createStudentWithProposals(
            self.org, self.mentor, 1)
        proposal = GSoCProposal.all().ancestor(self.student2).get()
        proposal.accept_as_project = True
        proposal.put()
Пример #4
0
  def createStudent(self):
    """Creates two new students the first one has a duplicate the second one has
    none.
    """
    profile_helper = GSoCProfileHelper(self.gsoc, self.dev_test)
    profile_helper.createOtherUser('*****@*****.**')
    self.student1 = profile_helper.createStudentWithProposals(
        self.org, self.mentor, 3)

    proposals = GSoCProposal.all().ancestor(self.student1).fetch(2)
    for p in proposals:
      p.accept_as_project = True
      p.put()

    profile_helper = GSoCProfileHelper(self.gsoc, self.dev_test)
    profile_helper.createOtherUser('*****@*****.**')
    self.student2 = profile_helper.createStudentWithProposals(
        self.org, self.mentor, 1)
    proposal = GSoCProposal.all().ancestor(self.student2).get()
    proposal.accept_as_project = True
    proposal.put()