Commit 06f969d8 authored by Łukasz Nowak's avatar Łukasz Nowak

- mark tests with expected failures


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf4667d1
......@@ -28,6 +28,7 @@
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.testERP5TypeInterfaces import addTestMethodDynamically
from backportUnittest import expectedFailure
import unittest
# this list can be generated automatically using introspection or can be set
......@@ -81,6 +82,24 @@ class TestERP5Interfaces(ERP5TypeTestCase):
addTestMethodDynamically(TestERP5Interfaces, implements_tuple_list)
for failing_method in [
'test_Products.ERP5.AggregatedAmountList_AggregatedAmountList_implements_IAmountList',
'test_Products.ERP5Type.Document.BusinessPath_BusinessPath_implements_IBusinessPath',
'test_Products.ERP5Type.Document.BusinessPath_BusinessPath_implements_ICategoryAccessProvider',
'test_Products.ERP5Type.Document.TradeCondition_TradeCondition_implements_IAmountGenerator',
'test_Products.ERP5Type.Document.TradeModelCell_TradeModelCell_implements_IAmountGenerator',
'test_Products.ERP5Type.Document.TradeModelCell_TradeModelCell_implements_IVariated',
'test_Products.ERP5Type.Document.TradeModelLine_TradeModelLine_implements_IAmountGenerator',
'test_Products.ERP5Type.Document.TradeModelLine_TradeModelLine_implements_IVariated',
'test_Products.ERP5Type.Document.TradeModelRule_TradeModelRule_implements_IRule',
'test_Products.ERP5Type.Document.TransformationRule_TransformationRule_implements_IRule',
'test_Products.ERP5Type.Document.Transformation_Transformation_implements_IAmountGenerator',
'test_Products.ERP5Type.Document.Transformation_Transformation_implements_IVariated',
'test_Products.ERP5Type.Document.TransformedResource_TransformedResource_implements_IVariated',
]:
setattr(TestERP5Interfaces, failing_method,
expectedFailure(getattr(TestERP5Interfaces,failing_method)))
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5Interfaces))
......
......@@ -28,6 +28,7 @@
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from zope.interface.verify import verifyClass
from backportUnittest import expectedFailure
import unittest
implements_tuple_list = [
......@@ -84,6 +85,13 @@ def addTestMethodDynamically(test_class, implements_tuple_list):
# Note: Enable this method when implements_tuple_list will be filled
addTestMethodDynamically(TestERP5TypeInterfaces, implements_tuple_list)
for failing_method in [
'test_Products.ERP5Type.ConsistencyMessage_ConsistencyMessage_implements_IConsistencyMessage',
]:
setattr(TestERP5TypeInterfaces, failing_method,
expectedFailure(getattr(TestERP5TypeInterfaces,failing_method)))
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5TypeInterfaces))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment