[Erp5-report] r28514 - /erp5/trunk/products/ERP5/tests/testOrder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 20 16:01:58 CEST 2009


Author: jerome
Date: Thu Aug 20 16:01:57 2009
New Revision: 28514

URL: http://svn.erp5.org?rev=28514&view=rev
Log:
don't use Tax Line in this test, and put a TODO for how this test have to be
updated once we move order printouts to trade model line.

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

Modified: erp5/trunk/products/ERP5/tests/testOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testOrder.py?rev=28514&r1=28513&r2=28514&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testOrder.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testOrder.py [utf8] Thu Aug 20 16:01:57 2009
@@ -2608,7 +2608,12 @@
         self.resource_portal_type).newContent(
                     portal_type=self.resource_portal_type,
                     title='Résource',)
-    tax = self.portal.tax_module.newContent(portal_type='Tax', title='tàx')
+    
+    # TODO: once we have updated order printout to use trade model lines, test
+    # the case of a trade model line with non ascii title on resource.
+    
+    # tax = self.portal.tax_module.newContent(portal_type='Tax', title='tàx')
+ 
     client = self.portal.organisation_module.newContent(
                               portal_type='Organisation',
                               title='Cliént',
@@ -2629,10 +2634,13 @@
                             resource_value=resource,
                             quantity=10,
                             price=3)
-    tax_line = order.newContent(portal_type='Tax Line',
-                                resource_value=tax,
-                                quantity=30,
-                                price=.26)
+
+    # see TODO above
+    #tax_line = order.newContent(portal_type='Tax Line',
+    #                            resource_value=tax,
+    #                            quantity=30,
+    #                            price=.26)
+
     order.confirm()
     transaction.commit()
     self.tic()




More information about the Erp5-report mailing list