Skip to content

Commit

Permalink
Changed the test setup for easier sub-test running.
Browse files Browse the repository at this point in the history
I was creating my own unittest.TestSuite, but this appears (from reading
the Django code) to not be necessary. Auto-discovery takes place if I
import the TestCase instances into the "acacia.tests" namespace and then
I can restrict test runs to invidivual TestCases.
  • Loading branch information
malcolmt committed Aug 29, 2010
1 parent df2afed commit 6ce0cba
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions acacia/tests/__init__.py
@@ -1,10 +1,4 @@
import unittest from acacia.tests.test_models import TopicTest

from acacia.tests.test_templatetags import (TreeTrunkErrorTests,
from acacia.tests import test_models, test_templatetags TreeTrunkMiscTests, TreeTrunkSingleRootTests, TreeTrunkFullContentTests)

def suite():
test_suite = unittest.defaultTestLoader.loadTestsFromModule(test_models)
test_suite.addTests(unittest.defaultTestLoader. \
loadTestsFromModule(test_templatetags))
return test_suite


0 comments on commit 6ce0cba

Please sign in to comment.