summaryrefslogtreecommitdiff
path: root/test/alltests.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-06-05 17:25:51 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-06-05 17:25:51 +0000
commit120dcee5a71187d4bebfe50aedbbefb09184cac1 (patch)
treef2a090a510c8df405d0b1bef2936bafa3511be07 /test/alltests.py
parentf8314ef9ff08af5f104731de402d6e6bd8c043f3 (diff)
downloadsqlalchemy-120dcee5a71187d4bebfe50aedbbefb09184cac1.tar.gz
reorganized unit tests into subdirectories
Diffstat (limited to 'test/alltests.py')
-rw-r--r--test/alltests.py71
1 files changed, 8 insertions, 63 deletions
diff --git a/test/alltests.py b/test/alltests.py
index 183fc1492..147d26d2c 100644
--- a/test/alltests.py
+++ b/test/alltests.py
@@ -1,71 +1,16 @@
import testbase
import unittest
-def suite():
- modules_to_test = (
- # core utilities
- 'historyarray',
- 'attributes',
- 'dependency',
-
- # connectivity, execution
- 'pool',
- 'transaction',
-
- # schema/tables
- 'reflection',
- 'testtypes',
- 'indexes',
+import orm.alltests as orm
+import base.alltests as base
+import sql.alltests as sql
+import engine.alltests as engine
+import ext.alltests as ext
- # SQL syntax
- 'select',
- 'selectable',
- 'case_statement',
-
- # assorted round-trip tests
- 'query',
-
- # defaults, sequences (postgres/oracle)
- 'defaults',
-
- # ORM selecting
- 'mapper',
- 'selectresults',
- 'lazytest1',
- 'eagertest1',
- 'eagertest2',
-
- # ORM persistence
- 'sessioncontext',
- 'objectstore',
- 'cascade',
- 'relationships',
- 'association',
-
- # cyclical ORM persistence
- 'cycles',
- 'poly_linked_list',
-
- # more select/persistence, backrefs
- 'entity',
- 'manytomany',
- 'onetoone',
- 'inheritance',
- 'inheritance2',
- 'inheritance3',
- 'polymorph',
-
- # extensions
- 'proxy_engine',
- 'activemapper',
- 'sqlsoup'
-
- #'wsgi_test',
-
- )
+def suite():
alltests = unittest.TestSuite()
- for module in map(__import__, modules_to_test):
- alltests.addTest(unittest.findTestCases(module, suiteClass=None))
+ for suite in (base, engine, sql, orm, ext):
+ alltests.addTest(suite.suite())
return alltests