* Move test code to testtools.tests.twistedsupport, to parallel matchers * Add testtools.deferredruntest to preserve backwards compatibility * Move NeedsTwistedTestCase out of test_spinner into shared module for Twisted tests
21 lines
453 B
Python
21 lines
453 B
Python
# Copyright (c) testtools developers. See LICENSE for details.
|
|
|
|
from unittest import TestSuite
|
|
|
|
|
|
def test_suite():
|
|
from testtools.tests.twistedsupport import (
|
|
test_deferred,
|
|
test_matchers,
|
|
test_runtest,
|
|
test_spinner,
|
|
)
|
|
modules = [
|
|
test_deferred,
|
|
test_matchers,
|
|
test_runtest,
|
|
test_spinner,
|
|
]
|
|
suites = map(lambda x: x.test_suite(), modules)
|
|
return TestSuite(suites)
|