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
57c48b37
Commit
57c48b37
authored
Sep 02, 2006
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't run testWebserver.py as part of the Zope2 test suite.
parent
314b8a17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
lib/python/Testing/ZopeTestCase/tests.py
lib/python/Testing/ZopeTestCase/tests.py
+10
-9
lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
+8
-9
No files found.
lib/python/Testing/ZopeTestCase/tests.py
View file @
57c48b37
"""test runner that works with zope.testing.testrunner"""
import
unittest
import
os
,
sys
"""Test runner that works with zope.testing.testrunner"""
import
os
,
sys
import
unittest
import
os
import
Testing.ZopeTestCase
suite
=
unittest
.
TestSuite
()
names
=
os
.
listdir
(
os
.
path
.
dirname
(
__file__
))
tests
=
[
x
[:
-
3
]
for
x
in
names
\
if
x
.
startswith
(
'test'
)
and
x
.
endswith
(
'.py'
)
\
and
not
x
==
'tests.py'
]
tests
=
[
x
[:
-
3
]
for
x
in
names
if
x
.
startswith
(
'test'
)
and
x
.
endswith
(
'.py'
)
and
x
!=
'tests.py'
# Don't run this module as part of the Zope2 suite
and
x
!=
'testWebserver.py'
]
import
Testing.ZopeTestCase
for
test
in
tests
:
m
=
__import__
(
"Testing.ZopeTestCase.%s"
%
test
)
m
=
__import__
(
'Testing.ZopeTestCase.%s'
%
test
)
m
=
getattr
(
Testing
.
ZopeTestCase
,
test
)
if
hasattr
(
m
,
'test_suite'
):
suite
.
addTest
(
m
.
test_suite
())
...
...
lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
View file @
57c48b37
"""test runner that works with zope.testing.testrunner"""
import
unittest
import
os
,
sys
"""Test runner that works with zope.testing.testrunner"""
import
os
,
sys
import
unittest
import
os
import
Testing.ZopeTestCase.zopedoctest
suite
=
unittest
.
TestSuite
()
names
=
os
.
listdir
(
os
.
path
.
dirname
(
__file__
))
tests
=
[
x
[:
-
3
]
for
x
in
names
\
if
x
.
startswith
(
'test'
)
and
x
.
endswith
(
'.py'
)
\
and
not
x
=
=
'tests.py'
]
tests
=
[
x
[:
-
3
]
for
x
in
names
if
x
.
startswith
(
'test'
)
and
x
.
endswith
(
'.py'
)
and
x
!
=
'tests.py'
]
import
Testing.ZopeTestCase.zopedoctest
for
test
in
tests
:
m
=
__import__
(
"Testing.ZopeTestCase.zopedoctest.%s"
%
test
)
m
=
__import__
(
'Testing.ZopeTestCase.zopedoctest.%s'
%
test
)
m
=
getattr
(
Testing
.
ZopeTestCase
.
zopedoctest
,
test
)
if
hasattr
(
m
,
'test_suite'
):
suite
.
addTest
(
m
.
test_suite
())
...
...
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