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)
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 )
def create_external_team(self, team=None, **kwargs): if not team: team = self.team return Factories.create_external_team(team=team, **kwargs)