def METHOD_NAME(self, mock_metrics, _):
    link_all_repos(
        integration_key=self.key,
        integration_id=self.integration.id,
        organization_id=0,
    )
    mock_metrics.incr.assert_called_with(
        "github.link_all_repos.error", tags={"type": "missing_organization"}
    )