]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix doctest integration
authorJonathan Ellis <jbellis@gmail.com>
Fri, 21 Jul 2006 16:44:01 +0000 (16:44 +0000)
committerJonathan Ellis <jbellis@gmail.com>
Fri, 21 Jul 2006 16:44:01 +0000 (16:44 +0000)
test/ext/alltests.py
test/ext/sqlsoup.py [deleted file]

index 67513f0328405b52860fced75b8c7005d2f16ff4..ee6ece89cdb2486e2b9d09a38843a1af7ebb526f 100644 (file)
@@ -1,17 +1,18 @@
 import testbase
-import unittest
+import unittest, doctest
 
 def suite():
-    modules_to_test = (
-       'ext.activemapper',
-       'ext.sqlsoup'
-        )
+    unittest_modules = ['ext.activemapper']
+    doctest_modules = ['sqlalchemy.ext.sqlsoup']
+
     alltests = unittest.TestSuite()
-    for name in modules_to_test:
+    for name in unittest_modules:
         mod = __import__(name)
         for token in name.split('.')[1:]:
             mod = getattr(mod, token)
         alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
+    for name in doctest_modules:
+        alltests.addTest(doctest.DocTestSuite(name))
     return alltests
 
 
diff --git a/test/ext/sqlsoup.py b/test/ext/sqlsoup.py
deleted file mode 100644 (file)
index 4d4dbb6..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-import testbase
-
-import sqlalchemy.ext.sqlsoup as sqlsoup
-
-class SqlSoupTest(testbase.AssertMixin):
-    def tearDown(self):
-        pass
-    def tearDownAll(self):
-        pass
-    def setUpAll(self):
-        pass
-    def setUp(self):
-        pass
-    def testall(self):
-        import doctest
-        doctest.testmod(m=sqlsoup,verbose=True)
-        
-if __name__ == "__main__":
-    testbase.main()