diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py index 687cacd27114455920a4125741989492e64f00bd..baa868e37141075b7f511d614dd09e0bf6d674cd 100644 --- a/product/ERP5Catalog/tests/testERP5Catalog.py +++ b/product/ERP5Catalog/tests/testERP5Catalog.py @@ -1787,15 +1787,11 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): message = 'Float Format' ZopeTestCase._print('\n%s ' % message) LOG('Testing... ',0,message) - org_a = self._makeOrganisation(title='org_a') - org_b = self._makeOrganisation(title='org_b') - sql_connection = self.getSQLConnection() - # Add a method in order to directly put values we want into - # the catalog. - catalog_kw = {'uid':{'query':'2 567.54', - 'format':'1 234.12', - 'type':'float'}} - sql_src = self.getCatalogTool()(src__=1,**catalog_kw) + + catalog_kw = {'uid': {'query': '2 567.54', + 'format': '1 234.12', + 'type': 'float'}} + sql_src = self.getCatalogTool()(src__=1, **catalog_kw) self.failUnless("TRUNCATE(catalog.uid,2) = '2567.54'" in sql_src) def test_SearchOnOwner(self):