Exemplo n.º 1
0
 def setUp(self):
   sponsor = program_utils.seedSponsor()
   program = program_utils.seedGSoCProgram(sponsor_key=sponsor.key())
   org_app = program_utils.seedApplicationSurvey(program.key())
   timeline_test_helper = timeline_utils.GSoCTimelineHelper(
       program.timeline, org_app)
   timeline_test_helper.orgSignup()
   self.timeline_helper = request_data.TimelineHelper(
       program.timeline, org_app)
Exemplo n.º 2
0
 def setUp(self):
     sponsor = program_utils.seedSponsor()
     program = program_utils.seedGSoCProgram(sponsor_key=sponsor.key())
     org_app = program_utils.seedApplicationSurvey(program.key())
     timeline_test_helper = timeline_utils.GSoCTimelineHelper(
         program.timeline, org_app)
     timeline_test_helper.orgSignup()
     self.timeline_helper = request_data.TimelineHelper(
         program.timeline, org_app)
Exemplo n.º 3
0
    def setUp(self):
        """See unittest.TestCase.setUp for specification."""
        sponsor = program_utils.seedSponsor()
        program = program_utils.seedProgram(sponsor_key=sponsor.key())
        self.app_survey = program_utils.seedApplicationSurvey(program.key())

        kwargs = {
            'sponsor': sponsor.key().name(),
            'program': program.program_id
        }
        self.data = request_data.RequestData(None, None, kwargs)
Exemplo n.º 4
0
    def setUp(self):
        """See unittest.TestCase.setUp for specification."""
        program = program_utils.seedProgram()
        self.org_app = program_utils.seedApplicationSurvey(program.key())
        self.org = org_utils.seedOrganization(program.key())

        self.kwargs = {
            'sponsor': org_model.getSponsorId(self.org.key),
            'program': org_model.getProgramId(self.org.key),
            'organization': org_model.getOrgId(self.org.key)
        }
Exemplo n.º 5
0
  def setUp(self):
    """See unittest.TestCase.setUp for specification."""
    program = program_utils.seedProgram()
    self.org_app = program_utils.seedApplicationSurvey(program.key())
    self.org = org_utils.seedOrganization(program.key())

    self.kwargs = {
        'sponsor': org_model.getSponsorId(self.org.key),
        'program': org_model.getProgramId(self.org.key),
        'organization': org_model.getOrgId(self.org.key)
        }
Exemplo n.º 6
0
  def setUp(self):
    """See unittest.TestCase.setUp for specification."""
    sponsor = program_utils.seedSponsor()
    program = program_utils.seedProgram(sponsor_key=sponsor.key())
    self.app_survey = program_utils.seedApplicationSurvey(program.key())

    kwargs = {
        'sponsor': sponsor.key().name(),
        'program': program.program_id
        }
    self.data = request_data.RequestData(None, None, kwargs)
Exemplo n.º 7
0
    def setUp(self):
        """See unittest.TestCase.setUp for specification."""
        sponsor = program_utils.seedSponsor()
        program = program_utils.seedProgram(sponsor_key=sponsor.key())
        self.survey = program_utils.seedApplicationSurvey(program.key())

        # seed some organizations with survey responses
        self.app_responses = set()
        for _ in range(TEST_ORGS_NUMBER):
            org = org_utils.seedOrganization(program.key())
            self.app_responses.add(
                org_utils.seedApplication(org.key, self.survey.key()).key)

        # seed some organizations without survey responses
        for _ in range(TEST_ORGS_NUMBER):
            org_utils.seedOrganization(program.key())

        other_program = program_utils.seedProgram(sponsor_key=sponsor.key())
        other_survey = program_utils.seedApplicationSurvey(other_program.key())

        # seed some organizations with survey responses for other survey
        for _ in range(TEST_ORGS_NUMBER):
            org = org_utils.seedOrganization(other_program.key())
            org_utils.seedApplication(org.key, other_survey.key())
Exemplo n.º 8
0
  def setUp(self):
    """See unittest.TestCase.setUp for specification."""
    sponsor = program_utils.seedSponsor()
    program = program_utils.seedProgram(sponsor_key=sponsor.key())
    self.survey = program_utils.seedApplicationSurvey(program.key())

    # seed some organizations with survey responses
    self.app_responses = set()
    for _ in range(TEST_ORGS_NUMBER):
      org = org_utils.seedOrganization(program.key())
      self.app_responses.add(
          org_utils.seedApplication(org.key, self.survey.key()).key)

    # seed some organizations without survey responses
    for _ in range(TEST_ORGS_NUMBER):
      org_utils.seedOrganization(program.key())

    other_program = program_utils.seedProgram(sponsor_key=sponsor.key())
    other_survey = program_utils.seedApplicationSurvey(other_program.key())

    # seed some organizations with survey responses for other survey
    for _ in range(TEST_ORGS_NUMBER):
      org = org_utils.seedOrganization(other_program.key())
      org_utils.seedApplication(org.key, other_survey.key())