Commit eea16790 authored by Julien Muchembled's avatar Julien Muchembled

testERP5(Type)Interfaces: do not import from Products.ERP5Type.Document anymore

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40001 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1547334c
......@@ -34,30 +34,30 @@ import unittest
# this list can be generated automatically using introspection or can be set
# manually and treated as reference to what implements what
implements_tuple_list = [
(('Products.ERP5Type.Document.RoleDefinition', 'RoleDefinition'), 'ILocalRoleGenerator'),
(('Products.ERP5Type.Document.BusinessLink','BusinessLink'), 'IBusinessLink'),
(('Products.ERP5Type.Document.BusinessLink','BusinessLink'), 'ICategoryAccessProvider'),
(('Products.ERP5Type.Document.TradeCondition','TradeCondition'), 'IAmountGenerator'),
(('Products.ERP5Type.Document.TradeModelCell','TradeModelCell'), 'IAmountGenerator'),
(('Products.ERP5Type.Document.TradeModelCell','TradeModelCell'), 'IVariated'),
(('Products.ERP5Type.Document.TradeModelLine','TradeModelLine'), 'IAmountGenerator'),
(('Products.ERP5Type.Document.TradeModelLine','TradeModelLine'), 'IVariated'),
(('Products.ERP5Type.Document.TradeModelPath','TradeModelPath'), 'IArrowBase'),
(('Products.ERP5Type.Document.TradeModelRule','TradeModelRule'), 'IPredicate'),
(('Products.ERP5Type.Document.TradeModelRule','TradeModelRule'), 'IRule'),
(('Products.ERP5Type.Document.Transformation','Transformation'), 'IAmountGenerator'),
(('Products.ERP5Type.Document.Transformation','Transformation'), 'IVariated'),
(('Products.ERP5Type.Document.TransformationRule','TransformationRule'), 'IPredicate'),
(('Products.ERP5Type.Document.TransformationRule','TransformationRule'), 'IRule'),
(('Products.ERP5Type.Document.TransformedResource','TransformedResource'), 'IVariated'),
(('Products.ERP5.Document.RoleDefinition', 'RoleDefinition'), 'ILocalRoleGenerator'),
(('Products.ERP5.Document.BusinessLink','BusinessLink'), 'IBusinessLink'),
(('Products.ERP5.Document.BusinessLink','BusinessLink'), 'ICategoryAccessProvider'),
(('Products.ERP5.Document.TradeCondition','TradeCondition'), 'IAmountGenerator'),
(('Products.ERP5.Document.TradeModelCell','TradeModelCell'), 'IAmountGenerator'),
(('Products.ERP5.Document.TradeModelCell','TradeModelCell'), 'IVariated'),
(('Products.ERP5.Document.TradeModelLine','TradeModelLine'), 'IAmountGenerator'),
(('Products.ERP5.Document.TradeModelLine','TradeModelLine'), 'IVariated'),
(('Products.ERP5.Document.TradeModelPath','TradeModelPath'), 'IArrowBase'),
(('Products.ERP5Legacy.Document.TradeModelRule','TradeModelRule'), 'IPredicate'),
(('Products.ERP5Legacy.Document.TradeModelRule','TradeModelRule'), 'IRule'),
(('Products.ERP5.Document.Transformation','Transformation'), 'IAmountGenerator'),
(('Products.ERP5.Document.Transformation','Transformation'), 'IVariated'),
(('Products.ERP5Legacy.Document.TransformationRule','TransformationRule'), 'IPredicate'),
(('Products.ERP5Legacy.Document.TransformationRule','TransformationRule'), 'IRule'),
(('Products.ERP5.Document.TransformedResource','TransformedResource'), 'IVariated'),
#IDocument
(('Products.ERP5Type.Document.Document', 'Document'), 'IDocument'),
(('Products.ERP5Type.Document.Image', 'Image'), 'IDocument'),
(('Products.ERP5Type.Document.File', 'File'), 'IDocument'),
(('Products.ERP5Type.Document.OOoDocument', 'OOoDocument'), 'IDocument'),
(('Products.ERP5Type.Document.TextDocument', 'TextDocument'), 'IDocument'),
(('Products.ERP5Type.Document.EmailDocument', 'EmailDocument'), 'IDocument'),
(('Products.ERP5Type.Document.Event', 'Event'), 'IDocument'),
(('Products.ERP5.Document.Document', 'Document'), 'IDocument'),
(('Products.ERP5.Document.Image', 'Image'), 'IDocument'),
(('Products.ERP5.Document.File', 'File'), 'IDocument'),
(('Products.ERP5OOo.Document.OOoDocument', 'OOoDocument'), 'IDocument'),
(('Products.ERP5.Document.TextDocument', 'TextDocument'), 'IDocument'),
(('Products.ERP5.Document.EmailDocument', 'EmailDocument'), 'IDocument'),
(('Products.ERP5.Document.Event', 'Event'), 'IDocument'),
# IAmountList
(('Products.ERP5.AggregatedAmountList', 'AggregatedAmountList'), 'IAmountList'),
]
......@@ -84,14 +84,14 @@ addTestMethodDynamically(TestERP5Interfaces, implements_tuple_list)
for failing_method in [
'test_Products.ERP5.AggregatedAmountList_AggregatedAmountList_implements_IAmountList',
'test_Products.ERP5Type.Document.BusinessLink_BusinessLink_implements_IBusinessLink',
'test_Products.ERP5Type.Document.BusinessLink_BusinessLink_implements_ICategoryAccessProvider',
'test_Products.ERP5Type.Document.TradeModelCell_TradeModelCell_implements_IVariated',
'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_IVariated',
'test_Products.ERP5Type.Document.TransformedResource_TransformedResource_implements_IVariated',
'test_Products.ERP5.Document.BusinessLink_BusinessLink_implements_IBusinessLink',
'test_Products.ERP5.Document.BusinessLink_BusinessLink_implements_ICategoryAccessProvider',
'test_Products.ERP5.Document.TradeModelCell_TradeModelCell_implements_IVariated',
'test_Products.ERP5.Document.TradeModelLine_TradeModelLine_implements_IVariated',
'test_Products.ERP5Legacy.Document.TradeModelRule_TradeModelRule_implements_IRule',
'test_Products.ERP5Legacy.Document.TransformationRule_TransformationRule_implements_IRule',
'test_Products.ERP5.Document.Transformation_Transformation_implements_IVariated',
'test_Products.ERP5.Document.TransformedResource_TransformedResource_implements_IVariated',
]:
setattr(TestERP5Interfaces, failing_method,
expectedFailure(getattr(TestERP5Interfaces,failing_method)))
......
......@@ -45,9 +45,9 @@ implements_tuple_list = [
'IActionContainer'),
(('Products.ERP5Type.ERP5Type', 'ERP5TypeInformation'),
'ILocalRoleAssignor'),
(('Products.ERP5Type.Document.ActionInformation', 'CacheableAction'),
(('Products.ERP5Type.Core.ActionInformation', 'CacheableAction'),
'IAction'),
(('Products.ERP5Type.Document.RoleInformation', 'RoleInformation'),
(('Products.ERP5Type.Core.RoleInformation', 'RoleInformation'),
'ILocalRoleGenerator'),
]
......
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