]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
moved to test framework
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Dec 2005 18:26:00 +0000 (18:26 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Dec 2005 18:26:00 +0000 (18:26 +0000)
test/types.py

index 836858aaf8cea64aaa0e4b8e120e6dd9c6194a1d..26e8dfd10fcaa9a0a3a8621e21399e12e98393ec 100644 (file)
@@ -1,17 +1,15 @@
-from testbase import PersistTest
-import sqlalchemy.types as types
-from sqlalchemy.schema import *
-
-import unittest, sys, os
+from sqlalchemy import *
+import testbase
+import string
 
 
     
-class TypesTest(PersistTest):
+class TypesTest(testbase.PersistTest):
+    def setUpAll(self):
+        global db
+        db = testbase.db
 
     def testprocessing(self):
-        import sqlalchemy.databases.sqlite as sqllite
-        db = sqllite.engine(':memory:', {}, echo = True)
-    
         class MyType(types.TypeEngine):
             def get_col_spec(self):
                 return "VARCHAR(100)"
@@ -41,4 +39,4 @@ class TypesTest(PersistTest):
      
         
 if __name__ == "__main__":
-    unittest.main()
+    testbase.main()