[Erp5-report] r35094 nicolas.dumazet - /erp5/trunk/products/ERP5/tests/testInventoryAPI.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 7 09:30:30 CEST 2010


Author: nicolas.dumazet
Date: Fri May  7 09:30:29 2010
New Revision: 35094

URL: http://svn.erp5.org?rev=35094&view=rev
Log:
this Quantity Unit Definition inverse property test should have been committed long ago

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

Modified: erp5/trunk/products/ERP5/tests/testInventoryAPI.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInventoryAPI.py?rev=35094&r1=35093&r2=35094&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInventoryAPI.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInventoryAPI.py [utf8] Fri May  7 09:30:29 2010
@@ -2506,7 +2506,8 @@
     unit = base_unit.newContent(
             portal_type='Quantity Unit Conversion Definition',
             quantity_unit='unit/lot',
-            quantity=50,)
+            inverse=True,
+            quantity=1.0/50,)
     unit.validate()
 
     self._safeTic()




More information about the Erp5-report mailing list