]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix some mssql unit tests
authorPaul Johnston <paj@pajhome.org.uk>
Fri, 8 Feb 2008 13:45:19 +0000 (13:45 +0000)
committerPaul Johnston <paj@pajhome.org.uk>
Fri, 8 Feb 2008 13:45:19 +0000 (13:45 +0000)
test/dialect/mssql.py

index 4fb918c7f3100132792fa3fc6ac07b4292ca7678..046fede102731493f741ecfb06714a95fafb6353 100755 (executable)
@@ -1,6 +1,8 @@
 import testenv; testenv.configure_for_tests()
 import re
 from sqlalchemy import *
+from sqlalchemy.orm import *
+from sqlalchemy import exceptions
 from sqlalchemy.sql import table, column
 from sqlalchemy.databases import mssql
 from testlib import *
@@ -184,6 +186,11 @@ class QueryTest(PersistTest):
         finally:
             metadata.drop_all()
 
+class Foo(object):
+    def __init__(self, **kw):
+        for k in kw:
+            setattr(self, k, kw[k])
+
 class GenerativeQueryTest(PersistTest):
     __only_on__ = 'mssql'