diff options
author | Dirk Wallenstein <halsmit@t-online.de> | 2011-02-16 08:41:30 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2011-02-28 09:54:15 +0800 |
commit | 14bb22b8de1b8eee9102159a34d8e2218a8a2bd6 (patch) | |
tree | c3fcb65c30db664193eac97e3d663c15781a6647 /apps/patchwork/tests | |
parent | c6d26672a7ecb8973b361770668661eec2fa24a2 (diff) | |
download | patchwork-14bb22b8de1b8eee9102159a34d8e2218a8a2bd6.tar.bz2 patchwork-14bb22b8de1b8eee9102159a34d8e2218a8a2bd6.tar.xz |
tests: Support execution of single tests
Django does not use suite() when executing single tests. Importing all
tests directly into __init__.py has the same effect as the replaced
version of suite().
Signed-off-by: Dirk Wallenstein <halsmit@t-online.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/tests')
-rw-r--r-- | apps/patchwork/tests/__init__.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/apps/patchwork/tests/__init__.py b/apps/patchwork/tests/__init__.py index 5ec3923..57e15cd 100644 --- a/apps/patchwork/tests/__init__.py +++ b/apps/patchwork/tests/__init__.py @@ -17,17 +17,8 @@ # along with Patchwork; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -import unittest -from patchwork.tests import patchparser, encodings, bundles, mboxviews, updates - -modules = [patchparser, encodings, bundles, mboxviews, updates] - -def suite(): - suite = unittest.TestSuite() - loader = unittest.TestLoader() - - for module in modules: - tests = loader.loadTestsFromModule(module) - suite.addTests(tests) - - return suite +from patchwork.tests.patchparser import * +from patchwork.tests.encodings import * +from patchwork.tests.bundles import * +from patchwork.tests.mboxviews import * +from patchwork.tests.updates import * |