def METHOD_NAME(self, mock_metrics, mock_repo, _):
    mock_repo.side_effect = IntegrityError
    self._add_responses()
    link_all_repos(
        integration_key=self.key,
        integration_id=self.integration.id,
        organization_id=self.organization.id,
    )
    mock_metrics.incr.assert_called_with("sentry.integration_repo_provider.repo_exists")