Exemple #1
0
    def create_external_team(self, team=None, integration=None, **kwargs):
        if not team:
            team = self.team
        if not integration:
            integration = self.integration

        return Factories.create_external_team(team=team,
                                              organization=team.organization,
                                              integration_id=integration.id,
                                              **kwargs)
Exemple #2
0
 def create_external_team(self, team=None, integration=None, **kwargs):
     if not team:
         team = self.team
     if not integration:
         integration = Integration.objects.create(
             provider="github", name="GitHub", external_id="github:1"
         )
         integration.add_organization(self.organization, self.user)
     return Factories.create_external_team(
         team=team, organization=team.organization, integration_id=integration.id, **kwargs
     )
Exemple #3
0
 def create_external_team(self, team=None, **kwargs):
     if not team:
         team = self.team
     return Factories.create_external_team(team=team, **kwargs)