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