[Erp5-report] r37773 luke - /erp5/trunk/products/ERP5/tests/testSupply.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 12 16:22:03 CEST 2010


Author: luke
Date: Thu Aug 12 16:22:02 2010
New Revision: 37773

URL: http://svn.erp5.org?rev=37773&view=rev
Log:
 - test Internal Supplies

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

Modified: erp5/trunk/products/ERP5/tests/testSupply.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testSupply.py?rev=37773&r1=37772&r2=37773&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testSupply.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testSupply.py [utf8] Thu Aug 12 16:22:02 2010
@@ -253,8 +253,22 @@ class TestPurchaseSupply(TestSaleSupply)
   def getTitle(self):
     return "Purchase Supply"
 
+class TestInternalSupply(TestSaleSupply):
+  """
+    Test Internal Supplies usage
+  """
+  run_all_test = 1
+
+  supply_portal_type = 'Internal Supply'
+  supply_line_portal_type = 'Internal Supply Line'
+  supply_cell_portal_type = 'Internal Supply Cell'
+
+  def getTitle(self):
+    return "Internal Supply"
+
 def test_suite():
   suite = unittest.TestSuite()
   suite.addTest(unittest.makeSuite(TestSaleSupply))
   suite.addTest(unittest.makeSuite(TestPurchaseSupply))
+  suite.addTest(unittest.makeSuite(TestInternalSupply))
   return suite




More information about the Erp5-report mailing list