From 9973586adb9cd66325fc81a71c9448325ef07cfd Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Tue, 12 Apr 2011 07:19:35 +0000
Subject: [PATCH] some tests disable business links

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45305 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testTradeModelLine.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/tests/testTradeModelLine.py b/product/ERP5/tests/testTradeModelLine.py
index 2982ad5b13..87f84878f3 100644
--- a/product/ERP5/tests/testTradeModelLine.py
+++ b/product/ERP5/tests/testTradeModelLine.py
@@ -128,9 +128,10 @@ class TestTradeModelLineMixin(TestBPMMixin, UserDict):
   def createBusinessProcess(self, business_link_list=(), **kw):
     business_process = super(TestTradeModelLineMixin,
         self).createBusinessProcess(**kw)
-    for business_link in business_link_list:
-      link = self.createBusinessLink(business_process, **business_link)
-      self['business_link/' + link.getTradePhaseId()] = link
+    if self.business_link_portal_type is not None:
+      for business_link in business_link_list:
+        link = self.createBusinessLink(business_process, **business_link)
+        self['business_link/' + link.getTradePhaseId()] = link
     return business_process
 
   @save_result_as('trade_condition')
-- 
2.30.9