From: Mike Bayer Date: Sat, 27 Mar 2010 14:51:03 +0000 (-0400) Subject: this test is too db specific and is covered by dialect tests X-Git-Tag: rel_0_6beta3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f62bc637a0dca3c974338eaddd77ed7332c9322b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git this test is too db specific and is covered by dialect tests --- diff --git a/test/sql/test_types.py b/test/sql/test_types.py index b62ab3b615..089ef727d2 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -249,46 +249,6 @@ class UserDefinedTest(TestBase): def teardown_class(cls): metadata.drop_all() -class ColumnsTest(TestBase, AssertsExecutionResults): - - def testcolumns(self): - expectedResults = { 'int_column': 'int_column INTEGER', - 'smallint_column': 'smallint_column SMALLINT', - 'varchar_column': 'varchar_column VARCHAR(20)', - 'numeric_column': 'numeric_column NUMERIC(12, 3)', - 'float_column': 'float_column FLOAT(25)', - } - - db = testing.db - if testing.against('oracle') or \ - testing.against('sqlite') or \ - testing.against('firebird'): - expectedResults['float_column'] = 'float_column FLOAT' - - if testing.against('maxdb'): - expectedResults['numeric_column'] = ( - expectedResults['numeric_column'].replace('NUMERIC', 'FIXED')) - - if testing.against('mssql'): - for key, value in expectedResults.items(): - expectedResults[key] = '%s NULL' % value - - testTable = Table('testColumns', MetaData(db), - Column('int_column', Integer), - Column('smallint_column', SmallInteger), - Column('varchar_column', String(20)), - Column('numeric_column', Numeric(12,3)), - Column('float_column', Float(25)), - ) - - for aCol in testTable.c: - eq_( - expectedResults[aCol.name], - db.dialect.ddl_compiler( - db.dialect, schema.CreateTable(testTable)). - get_column_specification(aCol) - ) - class UnicodeTest(TestBase, AssertsExecutionResults): """tests the Unicode type. also tests the TypeDecorator with instances in the types package."""