]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
some mssql stuff, though unicode is really not working still...
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Oct 2011 15:34:48 +0000 (11:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Oct 2011 15:34:48 +0000 (11:34 -0400)
test/engine/test_reflection.py
test/sql/test_types.py

index b79d3b7c28274f12d5c775ff9d704dd93201440b..61e3506b91a4345e480180d518eb96e241f3595e 100644 (file)
@@ -1178,7 +1178,7 @@ class CaseSensitiveTest(fixtures.TablesTest):
         assert "SomeTable" in m.tables
 
     @testing.fails_if(testing.requires._has_mysql_fully_case_sensitive)
-    @testing.fails_on_everything_except('sqlite', 'mysql')
+    @testing.fails_on_everything_except('sqlite', 'mysql', 'mssql')
     def test_reflect_case_insensitive(self):
         m = MetaData()
         t2 = Table("sOmEtAbLe", m, autoload=True, autoload_with=testing.db)
index 7aefac09bc017c023d76f858fb928e96d55abf38..77d6bb50638a73061dce692c47bd68f98e47f862 100644 (file)
@@ -1144,15 +1144,16 @@ class ExpressionTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiled
 
 
     @testing.fails_on('firebird', 'Data type unknown on the parameter')
+    @testing.fails_on('mssql', 'int is unsigned ?  not clear')
     def test_operator_adapt(self):
         """test type-based overloading of operators"""
 
         # test string concatenation
         expr = test_table.c.data + "somedata"
-        assert testing.db.execute(select([expr])).scalar() == "somedatasomedata"
+        eq_(testing.db.execute(select([expr])).scalar(), "somedatasomedata")
 
         expr = test_table.c.id + 15
-        assert testing.db.execute(select([expr])).scalar() == 16
+        eq_(testing.db.execute(select([expr])).scalar(), 16)
 
         # test custom operator conversion
         expr = test_table.c.avalue + 40
@@ -1160,17 +1161,17 @@ class ExpressionTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiled
 
         # value here is calculated as (250 - 40) / 10 = 21
         # because "40" is an integer, not an "avalue"
-        assert testing.db.execute(select([expr.label('foo')])).scalar() == 21
+        eq_(testing.db.execute(select([expr.label('foo')])).scalar(), 21)
 
         expr = test_table.c.avalue + literal(40, type_=MyCustomType)
 
         # + operator converted to -
         # value is calculated as: (250 - (40 * 10)) / 10 == -15
-        assert testing.db.execute(select([expr.label('foo')])).scalar() == -15
+        eq_(testing.db.execute(select([expr.label('foo')])).scalar(), -15)
 
         # this one relies upon anonymous labeling to assemble result
         # processing rules on the column.
-        assert testing.db.execute(select([expr])).scalar() == -15
+        eq_(testing.db.execute(select([expr])).scalar(), -15)
 
     def test_typedec_operator_adapt(self):
         expr = test_table.c.bvalue + "hi"