Commit 4976fcdc authored by Ivan Tyagov's avatar Ivan Tyagov

Session Tool is created from erp5_core business template.

It's not needed to create it manually.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24590 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc2bf8e6
......@@ -66,21 +66,7 @@ class TestSessionTool(ERP5TypeTestCase):
ZopeTestCase._print(message)
LOG('Testing... ',0,message)
portal = self.getPortal()
portal_caches = portal.portal_caches
portal.manage_addProduct['ERP5Type'].manage_addTool('ERP5 Session Tool')
self.assertNotEqual(None,getattr(portal, 'portal_sessions', None))
## create needed cache fatory for Session Tool
session_cache_factory = portal_caches.newContent(portal_type="Cache Factory", \
id = 'erp5_session_cache')
session_cache_factory.setCacheDuration(36000)
ram_cache_plugin = session_cache_factory.newContent(portal_type="Ram Cache")
ram_cache_plugin.setCacheDuration(36000)
ram_cache_plugin.setIntIndex(0)
## update Ram Cache structure
portal_caches.updateCache()
get_transaction().commit()
self.assertNotEqual(None, getattr(portal, 'portal_sessions', None))
def test_02_CreateSessionObject(self, quiet=0, run=run_all_test):
""" Create a session object and check if API (newContent) is properly working.
......
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