Commit d69ba952 authored by Jérome Perrin's avatar Jérome Perrin

create Z SQL Methods with a valid connection id.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14057 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 41df40f3
...@@ -584,7 +584,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -584,7 +584,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.failUnless(skin_subfolder is not None) self.failUnless(skin_subfolder is not None)
method_id = "z_fake_method" method_id = "z_fake_method"
addSQLMethod = skin_subfolder.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod addSQLMethod = skin_subfolder.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod
addSQLMethod(id = method_id,title = '', connection_id = 'test test', arguments = '', template = '') addSQLMethod(id=method_id, title='', connection_id='erp5_sql_connection',
arguments='', template='')
zsql_method = skin_subfolder._getOb(method_id, None) zsql_method = skin_subfolder._getOb(method_id, None)
self.failUnless(zsql_method is not None) self.failUnless(zsql_method is not None)
sequence.edit(zsql_method_id = method_id) sequence.edit(zsql_method_id = method_id)
...@@ -1099,7 +1100,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -1099,7 +1100,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.failUnless(catalog is not None) self.failUnless(catalog is not None)
method_id = "z_fake_method" method_id = "z_fake_method"
addSQLMethod =catalog.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod addSQLMethod =catalog.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod
addSQLMethod(id=method_id,title='', connection_id='test test', arguments='', template='') addSQLMethod(id=method_id, title='', connection_id='erp5_sql_connection',
arguments='', template='')
zsql_method = catalog._getOb(method_id, None) zsql_method = catalog._getOb(method_id, None)
self.failUnless(zsql_method is not None) self.failUnless(zsql_method is not None)
sequence.edit(zsql_method_id = method_id) sequence.edit(zsql_method_id = method_id)
...@@ -1125,7 +1127,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -1125,7 +1127,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
catalog = pc.getSQLCatalog() catalog = pc.getSQLCatalog()
method_id = "z_another_fake_method" method_id = "z_another_fake_method"
addSQLMethod =catalog.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod addSQLMethod =catalog.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod
addSQLMethod(id=method_id,title='', connection_id='test test', arguments='', template='') addSQLMethod(id=method_id, title='', connection_id='erp5_sql_connection',
arguments='', template='')
zsql_method = catalog._getOb(method_id, None) zsql_method = catalog._getOb(method_id, None)
self.failUnless(zsql_method is not None) self.failUnless(zsql_method is not None)
sequence.edit(another_zsql_method_id = method_id) sequence.edit(another_zsql_method_id = method_id)
......
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