Browse files

Changed the test setup for easier sub-test running.

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...
1 parent df2afed commit 6ce0cba3c72332bfb0c2ef092bdea6a4273be435 @malcolmt committed Aug 29, 2010
Showing with 3 additions and 9 deletions.
  1. +3 −9 acacia/tests/
12 acacia/tests/
@@ -1,10 +1,4 @@
-import unittest
-from acacia.tests import test_models, test_templatetags
-def suite():
- test_suite = unittest.defaultTestLoader.loadTestsFromModule(test_models)
- test_suite.addTests(unittest.defaultTestLoader. \
- loadTestsFromModule(test_templatetags))
- return test_suite
+from acacia.tests.test_models import TopicTest
+from acacia.tests.test_templatetags import (TreeTrunkErrorTests,
+ TreeTrunkMiscTests, TreeTrunkSingleRootTests, TreeTrunkFullContentTests)

0 comments on commit 6ce0cba

Please sign in to comment.