diff --git a/product/ERP5/tests/testSupply.py b/product/ERP5/tests/testSupply.py index 818423fd8d8f8813425ec2498b6dfedb6b259eb7..c1c4c9dbeb7779e5f77a708e48842b96312bf30a 100644 --- a/product/ERP5/tests/testSupply.py +++ b/product/ERP5/tests/testSupply.py @@ -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