summaryrefslogtreecommitdiff
path: root/test/orm/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/orm/alltests.py
parentf8314ef9ff08af5f104731de402d6e6bd8c043f3 (diff)
downloadsqlalchemy-120dcee5a71187d4bebfe50aedbbefb09184cac1.tar.gz
reorganized unit tests into subdirectories
Diffstat (limited to 'test/orm/alltests.py')
-rw-r--r--test/orm/alltests.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/orm/alltests.py b/test/orm/alltests.py
new file mode 100644
index 000000000..4c038f122
--- /dev/null
+++ b/test/orm/alltests.py
@@ -0,0 +1,39 @@
+import testbase
+import unittest
+
+def suite():
+ modules_to_test = (
+ 'orm.mapper',
+ 'orm.selectresults',
+ 'orm.lazytest1',
+ 'orm.eagertest1',
+ 'orm.eagertest2',
+
+ 'orm.sessioncontext',
+ 'orm.objectstore',
+ 'orm.cascade',
+ 'orm.relationships',
+ 'orm.association',
+
+ 'orm.cycles',
+ 'orm.poly_linked_list',
+
+ 'orm.entity',
+ 'orm.manytomany',
+ 'orm.onetoone',
+ 'orm.inheritance',
+ 'orm.inheritance2',
+ 'orm.inheritance3',
+ 'orm.polymorph'
+ )
+ alltests = unittest.TestSuite()
+ for name in modules_to_test:
+ mod = __import__(name)
+ for token in name.split('.')[1:]:
+ mod = getattr(mod, token)
+ alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
+ return alltests
+
+
+if __name__ == '__main__':
+ testbase.runTests(suite())