コード例 #1
0
    def testSimpleGroupMigration(self):

        # Clear out previous projects.
        for project in api_base.entity_get_all(Project):
            api_base.entity_hard_delete(Project, project.id)

        projects_loader.do_load_models('./etc/projects.yaml.sample')

        all_groups = api_base.entity_get_all(ProjectGroup)
        all_projects = api_base.entity_get_all(Project)
        self.assertEqual(3, len(all_groups))
        self.assertEqual(2, len(all_projects))

        for project in all_projects:
            branches = api_base.entity_get_count(Branch,
                                                 project_id=project.id,
                                                 name='master')
            self.assertEqual(1, branches)
コード例 #2
0
    def testSimpleGroupMigration(self):

        # Clear out previous projects.
        for project in api_base.entity_get_all(Project):
            api_base.entity_hard_delete(Project, project.id)

        projects_loader.do_load_models('./etc/projects.yaml.sample')

        all_groups = api_base.entity_get_all(ProjectGroup)
        all_projects = api_base.entity_get_all(Project)
        self.assertEqual(3, len(all_groups))
        self.assertEqual(2, len(all_projects))

        for project in all_projects:
            branches = api_base.entity_get_count(Branch,
                                                 project_id=project.id,
                                                 name='master')
            self.assertEqual(1, branches)
コード例 #3
0
def project_group_get_count(**kwargs):
    return api_base.entity_get_count(models.ProjectGroup, **kwargs)
コード例 #4
0
def events_get_count(**kwargs):
    return api_base.entity_get_count(models.TimeLineEvent,
                                     **kwargs)
コード例 #5
0
ファイル: users.py プロジェクト: devcurmudgeon/storyboard
def user_get_count(**kwargs):
    return api_base.entity_get_count(models.User, **kwargs)
コード例 #6
0
ファイル: teams.py プロジェクト: openstack-infra/storyboard
def team_get_count(**kwargs):
    return api_base.entity_get_count(models.Team, **kwargs)
コード例 #7
0
def events_get_count(**kwargs):
    return api_base.entity_get_count(models.TimeLineEvent, **kwargs)
コード例 #8
0
def milestone_get_count(**kwargs):
    return api_base.entity_get_count(models.Milestone, **kwargs)
コード例 #9
0
def team_get_count(**kwargs):
    return api_base.entity_get_count(models.Team, **kwargs)
コード例 #10
0
ファイル: story_tags.py プロジェクト: ColdrickSotK/storyboard
def tag_get_count(**kwargs):
    return api_base.entity_get_count(models.StoryTag, **kwargs)
コード例 #11
0
def tag_get_count(**kwargs):
    return api_base.entity_get_count(models.StoryTag, **kwargs)
コード例 #12
0
def subscription_get_count(**kwargs):
    return api_base.entity_get_count(models.Subscription, **kwargs)
コード例 #13
0
def subscription_events_get_count(**kwargs):
    return api_base.entity_get_count(models.SubscriptionEvents, **kwargs)
コード例 #14
0
def user_get_count(**kwargs):
    return api_base.entity_get_count(models.User, **kwargs)
コード例 #15
0
ファイル: milestones.py プロジェクト: ColdrickSotK/storyboard
def milestone_get_count(**kwargs):
    return api_base.entity_get_count(models.Milestone, **kwargs)
コード例 #16
0
ファイル: worklists.py プロジェクト: ColdrickSotK/storyboard
def get_count(**kwargs):
    return api_base.entity_get_count(models.Worklist, **kwargs)