[Erp5-report] r18353 - /erp5/trunk/products/ERP5/tests/testPayroll.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 17 11:10:39 CET 2007
Author: fabien
Date: Mon Dec 17 11:10:38 2007
New Revision: 18353
URL: http://svn.erp5.org?rev=18353&view=rev
Log:
add an inheritance tree comment that permit to well understand the test, and so
well update an modify it
Modified:
erp5/trunk/products/ERP5/tests/testPayroll.py
Modified: erp5/trunk/products/ERP5/tests/testPayroll.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPayroll.py?rev=18353&r1=18352&r2=18353&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPayroll.py (original)
+++ erp5/trunk/products/ERP5/tests/testPayroll.py Mon Dec 17 11:10:38 2007
@@ -984,6 +984,30 @@
# model_d is not take into account because it have no annotation line wich
# are not already added by other models
+
+ # the inheritance tree look like this :
+
+# model_employee
+# ('overtime_duration', '1')
+# |
+# |
+# |
+# model_company
+# ('worked_time_duration', '1', '2')
+# / | \
+# / | \
+# / | \
+# model_country model_a model_b
+# ('social_insurance', ('5',) ('5', '6')
+# '1', '2', '3', '4') |
+# | |
+# | |
+# model_d model_c
+# ('5', '6') ('5', '6', '7', '8')
+
+
+
+
self.assertEqual(set(model_reference_dict[model_employee.getRelativeUrl()]),
set(['1', 'over_time_duration']))
self.assertEqual(set(model_reference_dict[model_company.getRelativeUrl()]),
More information about the Erp5-report
mailing list