Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/q/u/quality_report-1.0/unittests/metric/ci_metric_tests.py   quality_report(Download)
        for index in range(2):
            team = domain.Team('Team %d' % index)
            project.add_team(team, responsible=True)
        self.failIf(metric.ProjectFailingCIJobs.can_be_measured(team, project))
 
    def setUp(self):  # pylint: disable=invalid-name
        ''' Create the text fixture. '''
        self._project = domain.Project(build_server=FakeJenkins())
        self._subject = domain.Team('Team')
        self._project.add_team(self._subject, responsible=True)
        self._project.add_team(domain.Team('Another team'), responsible=True)
        project = domain.Project(build_server=FakeJenkins())
        team = domain.Team('Single team')
        project.add_team(team, responsible=True)
        self.failIf(metric.TeamFailingCIJobs.can_be_measured(team, project))
 
        for index in range(2):
            team = domain.Team('Team %d' % index)
            project.add_team(team, responsible=True)
        self.failIf(metric.TeamFailingCIJobs.can_be_measured(team, project))
 

src/q/u/quality_report-1.0/unittests/domain/product_tests.py   quality_report(Download)
    def test_project_responsible_teams(self):
        ''' Test that the project's responsible teams are used if no
            responsible teams have been set for the product. '''
        project = domain.Project()
        project.add_team('Team', responsible=True)

src/q/u/quality_report-1.0/unittests/report_tests.py   quality_report(Download)
        for index in range(number_of_teams):
            team = domain.Team('Team %d' % index, **team_kwargs)
            project.add_team(team)
        if product_kwargs:
            jsf_kwargs = product_kwargs.pop('jsf', dict())