adding a testrunner the zope.testing.testrunner can see

parent 423e9162
"""test runner that works with zope.testing.testrunner"""
import unittest
import os, sys
import os, sys
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']
import Testing.ZopeTestCase.zopedoctest
for test in tests:
m = __import__("Testing.ZopeTestCase.zopedoctest.%s" %test)
m = getattr(Testing.ZopeTestCase.zopedoctest, test)
if hasattr(m, 'test_suite'):
suite.addTest(m.test_suite())
def test_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