Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
65c58558
Commit
65c58558
authored
Mar 07, 2009
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove testrunner boilerplate.
parent
ea10a300
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1 addition
and
107 deletions
+1
-107
src/Testing/ZopeTestCase/testBaseTestCase.py
src/Testing/ZopeTestCase/testBaseTestCase.py
+0
-7
src/Testing/ZopeTestCase/testFunctional.py
src/Testing/ZopeTestCase/testFunctional.py
+0
-7
src/Testing/ZopeTestCase/testInterfaces.py
src/Testing/ZopeTestCase/testInterfaces.py
+0
-7
src/Testing/ZopeTestCase/testPlaceless.py
src/Testing/ZopeTestCase/testPlaceless.py
+0
-7
src/Testing/ZopeTestCase/testPortalTestCase.py
src/Testing/ZopeTestCase/testPortalTestCase.py
+0
-7
src/Testing/ZopeTestCase/testPythonScript.py
src/Testing/ZopeTestCase/testPythonScript.py
+0
-7
src/Testing/ZopeTestCase/testSkeleton.py
src/Testing/ZopeTestCase/testSkeleton.py
+0
-7
src/Testing/ZopeTestCase/testWebserver.py
src/Testing/ZopeTestCase/testWebserver.py
+0
-10
src/Testing/ZopeTestCase/testZODBCompat.py
src/Testing/ZopeTestCase/testZODBCompat.py
+1
-6
src/Testing/ZopeTestCase/testZopeTestCase.py
src/Testing/ZopeTestCase/testZopeTestCase.py
+0
-7
src/Testing/ZopeTestCase/zopedoctest/testAuthHeaderTest.py
src/Testing/ZopeTestCase/zopedoctest/testAuthHeaderTest.py
+0
-7
src/Testing/ZopeTestCase/zopedoctest/testFunctionalDocTest.py
...Testing/ZopeTestCase/zopedoctest/testFunctionalDocTest.py
+0
-7
src/Testing/ZopeTestCase/zopedoctest/testPackageAsProduct.py
src/Testing/ZopeTestCase/zopedoctest/testPackageAsProduct.py
+0
-7
src/Testing/ZopeTestCase/zopedoctest/testWarningsTest.py
src/Testing/ZopeTestCase/zopedoctest/testWarningsTest.py
+0
-7
src/Testing/ZopeTestCase/zopedoctest/testZopeDocTest.py
src/Testing/ZopeTestCase/zopedoctest/testZopeDocTest.py
+0
-7
No files found.
src/Testing/ZopeTestCase/testBaseTestCase.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testFunctional.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testInterfaces.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testPlaceless.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testPortalTestCase.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testPythonScript.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testSkeleton.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testWebserver.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testZODBCompat.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/testZopeTestCase.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/zopedoctest/testAuthHeaderTest.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/zopedoctest/testFunctionalDocTest.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/zopedoctest/testPackageAsProduct.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/zopedoctest/testWarningsTest.py
View file @
65c58558
...
@@ -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
()
src/Testing/ZopeTestCase/zopedoctest/testZopeDocTest.py
View file @
65c58558
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment