[Erp5-report] r31898 kazuhiko - /erp5/trunk/products/ERP5/tests/testERP5Simulation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 22 11:43:52 CET 2010


Author: kazuhiko
Date: Fri Jan 22 11:43:49 2010
New Revision: 31898

URL: http://svn.erp5.org?rev=31898&view=rev
Log:
we need more matching testers and divergence testers for invoice transaction rule.

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

Modified: erp5/trunk/products/ERP5/tests/testERP5Simulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Simulation.py?rev=31898&r1=31897&r2=31898&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] Fri Jan 22 11:43:49 2010
@@ -109,7 +109,9 @@
           destination_value=account_module[line_destination_id])
 
     # matching provider for source and destination
-    for category in ('source', 'destination',):
+    for category in ('resource', 'source', 'destination',
+                     'destination_total_asset_price',
+                     'source_total_asset_price'):
       invoice_rule.newContent(
         portal_type='Category Membership Divergence Tester',
         title='%s divergence tester' % category,
@@ -119,11 +121,20 @@
     # matching provider for quantity (i.e. only used for expand)
     invoice_rule.newContent(
       portal_type='Net Converted Quantity Divergence Tester',
-      title='%s divergence tester' % category,
+      title='quantity divergence tester',
       tested_property='quantity',
       quantity=0,
       divergence_provider=False,
       matching_provider=True)
+    # divergence provider for date
+    for property_id in ('start_date', 'stop_date'):
+      invoice_rule.newContent(
+        portal_type='DateTime Divergence Tester',
+        title='%s divergence tester' % property_id,
+        tested_property=property_id,
+        quantity=0,
+        divergence_provider=True,
+        matching_provider=False)
     invoice_rule.validate()
     transaction.commit()
     self.tic()




More information about the Erp5-report mailing list