From dc4c0624345d87d03989db6dd41808485b91ecc3 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 4 Dec 2005 18:26:00 +0000 Subject: [PATCH] moved to test framework --- test/types.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/test/types.py b/test/types.py index 836858aaf8..26e8dfd10f 100644 --- a/test/types.py +++ b/test/types.py @@ -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() -- 2.47.2