Commit 9da4a7c4 authored by Jérome Perrin's avatar Jérome Perrin

fix undefined names


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16489 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21fa87bf
...@@ -26,9 +26,8 @@ ...@@ -26,9 +26,8 @@
# #
############################################################################## ##############################################################################
import os, sys
if __name__ == '__main__': import unittest
execfile(os.path.join(sys.path[0], 'framework.py'))
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
...@@ -370,11 +369,7 @@ return [] ...@@ -370,11 +369,7 @@ return []
title_line.getColumnItemList()) title_line.getColumnItemList())
if __name__ == '__main__': def test_suite():
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestListBox)) suite.addTest(unittest.makeSuite(TestListBox))
return suite return suite
......
...@@ -26,19 +26,10 @@ ...@@ -26,19 +26,10 @@
# #
############################################################################## ##############################################################################
import os, sys import unittest
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
# Needed in order to have a log file inside the current folder
os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
os.environ['EVENT_LOG_SEVERITY'] = '-300'
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from zLOG import LOG
from Testing import ZopeTestCase
from Products.ERP5Type.Utils import get_request
from Products.ERP5Form.Selection import Selection from Products.ERP5Form.Selection import Selection
...@@ -228,11 +219,7 @@ class TestSelectionTool(ERP5TypeTestCase): ...@@ -228,11 +219,7 @@ class TestSelectionTool(ERP5TypeTestCase):
self.assertEquals(None, self.assertEquals(None,
self.portal_selections.getSelectionIndexFor('test_selection')) self.portal_selections.getSelectionIndexFor('test_selection'))
if __name__ == '__main__': def test_suite():
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestSelectionTool)) suite.addTest(unittest.makeSuite(TestSelectionTool))
return suite return suite
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