Commit 8a211364 authored by Jérome Perrin's avatar Jérome Perrin

Predicate Group was removed long ago

also remove uneeded imports



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12851 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 588d3c02
...@@ -26,14 +26,6 @@ ...@@ -26,14 +26,6 @@
# #
############################################################################## ##############################################################################
#
# Skeleton ZopeTestCase
#
from random import randint
import os, sys import os, sys
if __name__ == '__main__': if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py')) execfile(os.path.join(sys.path[0], 'framework.py'))
...@@ -42,16 +34,9 @@ if __name__ == '__main__': ...@@ -42,16 +34,9 @@ if __name__ == '__main__':
os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log') os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
os.environ['EVENT_LOG_SEVERITY'] = '-300' os.environ['EVENT_LOG_SEVERITY'] = '-300'
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.Base import _aq_reset from Products.ERP5Type.Base import _aq_reset
from Products.ERP5.Document.Organisation import Organisation from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Type.Tool.ClassTool import _aq_reset
from DateTime import DateTime
from Products.ERP5.Document.Person import Person
from AccessControl.SecurityManagement import newSecurityManager, noSecurityManager
from zLOG import LOG
import time
class TestERP5Category(ERP5TypeTestCase): class TestERP5Category(ERP5TypeTestCase):
...@@ -70,7 +55,6 @@ class TestERP5Category(ERP5TypeTestCase): ...@@ -70,7 +55,6 @@ class TestERP5Category(ERP5TypeTestCase):
""" """
return "ERP5 Categories" return "ERP5 Categories"
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
Return the list of business templates. Return the list of business templates.
...@@ -109,7 +93,6 @@ class TestERP5Category(ERP5TypeTestCase): ...@@ -109,7 +93,6 @@ class TestERP5Category(ERP5TypeTestCase):
portal_type = self.getTypeTool()[self.portal_type] portal_type = self.getTypeTool()[self.portal_type]
portal_type.base_category_list = [self.base_cat, self.base_cat2] portal_type.base_category_list = [self.base_cat, self.base_cat2]
# Reset aq dynamic # Reset aq dynamic
from Products.ERP5Type.Base import _aq_reset
_aq_reset() _aq_reset()
organisation_module = self.getOrganisationModule() organisation_module = self.getOrganisationModule()
self.organisation = organisation_module.newContent(id='1',portal_type=self.portal_type) self.organisation = organisation_module.newContent(id='1',portal_type=self.portal_type)
...@@ -134,7 +117,7 @@ class TestERP5Category(ERP5TypeTestCase): ...@@ -134,7 +117,7 @@ class TestERP5Category(ERP5TypeTestCase):
portal = self.getPortal() portal = self.getPortal()
type_tool = self.getTypeTool() type_tool = self.getTypeTool()
module_type = type_tool['%s Module' % self.portal_type] module_type = type_tool['%s Module' % self.portal_type]
module_type.allowed_content_types += ('Predicate Group',) module_type.allowed_content_types += ('Mapped Value',)
module = self.getOrganisationModule() module = self.getOrganisationModule()
predicate = module.newContent(id='predicate',portal_type='Mapped Value') predicate = module.newContent(id='predicate',portal_type='Mapped Value')
predicate.setCriterion('quantity',identity=None,min=None,max=None) predicate.setCriterion('quantity',identity=None,min=None,max=None)
......
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