Commit 65c58558 authored by Stefan H. Holek's avatar Stefan H. Holek

Remove testrunner boilerplate.

parent ea10a300
...@@ -21,10 +21,6 @@ quick way of getting started. ...@@ -21,10 +21,6 @@ quick way of getting started.
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
import transaction import transaction
from Testing.ZopeTestCase import base from Testing.ZopeTestCase import base
...@@ -463,6 +459,3 @@ def test_suite(): ...@@ -463,6 +459,3 @@ def test_suite():
suite.addTest(makeSuite(TestRequestGarbage3)) suite.addTest(makeSuite(TestRequestGarbage3))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -18,10 +18,6 @@ requests against the ZPublisher and how to examine the response. ...@@ -18,10 +18,6 @@ requests against the ZPublisher and how to examine the response.
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing import ZopeTestCase from Testing import ZopeTestCase
ZopeTestCase.installProduct('PythonScripts') ZopeTestCase.installProduct('PythonScripts')
...@@ -206,6 +202,3 @@ def test_suite(): ...@@ -206,6 +202,3 @@ def test_suite():
suite.addTest(makeSuite(TestFunctional)) suite.addTest(makeSuite(TestFunctional))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing.ZopeTestCase import * from Testing.ZopeTestCase import *
from Testing.ZopeTestCase.interfaces import * from Testing.ZopeTestCase.interfaces import *
...@@ -99,6 +95,3 @@ def test_suite(): ...@@ -99,6 +95,3 @@ def test_suite():
suite.addTest(makeSuite(TestPortalTestCase)) suite.addTest(makeSuite(TestPortalTestCase))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Testing.ZopeTestCase.placeless import setUp, tearDown from Testing.ZopeTestCase.placeless import setUp, tearDown
...@@ -92,6 +88,3 @@ def test_suite(): ...@@ -92,6 +88,3 @@ def test_suite():
suite.addTest(makeSuite(TestPlacelessSetUp)) suite.addTest(makeSuite(TestPlacelessSetUp))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -21,10 +21,6 @@ quick way of getting started. ...@@ -21,10 +21,6 @@ quick way of getting started.
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Acquisition import aq_base from Acquisition import aq_base
...@@ -523,6 +519,3 @@ def test_suite(): ...@@ -523,6 +519,3 @@ def test_suite():
suite.addTest(makeSuite(TestSetUpRaises)) suite.addTest(makeSuite(TestSetUpRaises))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -25,10 +25,6 @@ modify the test user's security credentials: ...@@ -25,10 +25,6 @@ modify the test user's security credentials:
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing import ZopeTestCase from Testing import ZopeTestCase
ZopeTestCase.installProduct('PythonScripts') ZopeTestCase.installProduct('PythonScripts')
...@@ -197,6 +193,3 @@ def test_suite(): ...@@ -197,6 +193,3 @@ def test_suite():
suite.addTest(makeSuite(TestPythonScript)) suite.addTest(makeSuite(TestPythonScript))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing import ZopeTestCase from Testing import ZopeTestCase
ZopeTestCase.installProduct('SomeProduct') ZopeTestCase.installProduct('SomeProduct')
...@@ -40,6 +36,3 @@ def test_suite(): ...@@ -40,6 +36,3 @@ def test_suite():
suite.addTest(makeSuite(TestSomeProduct)) suite.addTest(makeSuite(TestSomeProduct))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -29,13 +29,6 @@ example instead. ...@@ -29,13 +29,6 @@ example instead.
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
#os.environ['STUPID_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
#os.environ['STUPID_LOG_SEVERITY'] = '0'
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Testing.ZopeTestCase import transaction from Testing.ZopeTestCase import transaction
...@@ -199,6 +192,3 @@ def test_suite(): ...@@ -199,6 +192,3 @@ def test_suite():
suite.addTest(makeSuite(TestSandboxedWebserver)) suite.addTest(makeSuite(TestSandboxedWebserver))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -19,9 +19,7 @@ operation. ...@@ -19,9 +19,7 @@ operation.
$Id$ $Id$
""" """
import os, sys import os
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing import ZopeTestCase from Testing import ZopeTestCase
...@@ -380,6 +378,3 @@ def test_suite(): ...@@ -380,6 +378,3 @@ def test_suite():
suite.addTest(makeSuite(TestTransactionAbort)) suite.addTest(makeSuite(TestTransactionAbort))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -21,10 +21,6 @@ quick way of getting started. ...@@ -21,10 +21,6 @@ quick way of getting started.
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Testing.ZopeTestCase import folder_name from Testing.ZopeTestCase import folder_name
...@@ -408,6 +404,3 @@ def test_suite(): ...@@ -408,6 +404,3 @@ def test_suite():
suite.addTest(makeSuite(TestWrappingUserFolder)) suite.addTest(makeSuite(TestWrappingUserFolder))
return suite return suite
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from unittest import TestSuite, makeSuite from unittest import TestSuite, makeSuite
from Testing.ZopeTestCase import TestCase from Testing.ZopeTestCase import TestCase
from Testing.ZopeTestCase import zopedoctest from Testing.ZopeTestCase import zopedoctest
...@@ -56,6 +52,3 @@ def test_suite(): ...@@ -56,6 +52,3 @@ def test_suite():
makeSuite(AuthHeaderTestCase), makeSuite(AuthHeaderTestCase),
)) ))
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from unittest import TestSuite from unittest import TestSuite
from Testing.ZopeTestCase import installProduct from Testing.ZopeTestCase import installProduct
from Testing.ZopeTestCase import FunctionalDocTestSuite from Testing.ZopeTestCase import FunctionalDocTestSuite
...@@ -67,6 +63,3 @@ def test_suite(): ...@@ -67,6 +63,3 @@ def test_suite():
FunctionalDocFileSuite('FunctionalDocTest.txt', setUp=setUp), FunctionalDocFileSuite('FunctionalDocTest.txt', setUp=setUp),
)) ))
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from unittest import TestSuite from unittest import TestSuite
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Testing.ZopeTestCase import ZopeLite from Testing.ZopeTestCase import ZopeLite
...@@ -117,6 +113,3 @@ def test_suite(): ...@@ -117,6 +113,3 @@ def test_suite():
else: else:
return TestSuite() return TestSuite()
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from unittest import TestSuite from unittest import TestSuite
from Testing.ZopeTestCase import ZopeDocFileSuite from Testing.ZopeTestCase import ZopeDocFileSuite
...@@ -28,6 +24,3 @@ def test_suite(): ...@@ -28,6 +24,3 @@ def test_suite():
ZopeDocFileSuite('WarningsTest.txt'), ZopeDocFileSuite('WarningsTest.txt'),
)) ))
if __name__ == '__main__':
framework()
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
$Id$ $Id$
""" """
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from unittest import TestSuite from unittest import TestSuite
from Testing.ZopeTestCase import ZopeDocTestSuite from Testing.ZopeTestCase import ZopeDocTestSuite
from Testing.ZopeTestCase import ZopeDocFileSuite from Testing.ZopeTestCase import ZopeDocFileSuite
...@@ -43,6 +39,3 @@ def test_suite(): ...@@ -43,6 +39,3 @@ def test_suite():
ZopeDocFileSuite('ZopeDocTest.txt', setUp=setUp), ZopeDocFileSuite('ZopeDocTest.txt', setUp=setUp),
)) ))
if __name__ == '__main__':
framework()
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