[Erp5-report] r20335 - /erp5/trunk/products/ERP5/tests/testAmount.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 8 10:49:15 CEST 2008


Author: jerome
Date: Tue Apr  8 10:49:14 2008
New Revision: 20335

URL: http://svn.erp5.org?rev=20335&view=rev
Log:
return the Movement in the context of a Delivery

Modified:
    erp5/trunk/products/ERP5/tests/testAmount.py

Modified: erp5/trunk/products/ERP5/tests/testAmount.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAmount.py?rev=20335&r1=20334&r2=20335&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAmount.py (original)
+++ erp5/trunk/products/ERP5/tests/testAmount.py Tue Apr  8 10:49:14 2008
@@ -246,8 +246,11 @@
   def _makeOne(self, *args, **kw):
     from Products.ERP5.Document.Movement import Movement
     mvt = Movement(*args, **kw)
-    # return it wrapped, so that it can access the types tool in _aq_dynamic
-    return mvt.__of__(self.portal)
+    from Products.ERP5.Document.Delivery import Delivery
+    delivery = Delivery('delivery').__of__(self.portal)
+    # return it wrapped in a delivery, so that it can access the types tool in
+    # _aq_dynamic, and so that getExplanationValue works as expected
+    return mvt.__of__(delivery)
 
   def testQuantity(self):
     mvt = self._makeOne('mvt')




More information about the Erp5-report mailing list