diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-27 16:27:27 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-27 16:27:27 -0400 |
commit | 68a350d462b6840d6623a89565f8febf3a997830 (patch) | |
tree | 4d3ea4d93d14738a1c5a418a37917f80a41cf85e /test/dialect/test_mysql.py | |
parent | a3083eabf467e7f36db0850342758ce162c3eef8 (diff) | |
download | sqlalchemy-68a350d462b6840d6623a89565f8febf3a997830.tar.gz |
- remove test.sql._base, test.engine._base, test.orm._base, move those classes to a new test.lib.fixtures module
- move testing.TestBase to test.lib.fixtures
- massive search and replace
Diffstat (limited to 'test/dialect/test_mysql.py')
-rw-r--r-- | test/dialect/test_mysql.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py index 2653ae00f..fb20f44fd 100644 --- a/test/dialect/test_mysql.py +++ b/test/dialect/test_mysql.py @@ -16,7 +16,7 @@ from test.lib import * from test.lib.engines import utf8_engine import datetime -class CompileTest(TestBase, AssertsCompiledSQL): +class CompileTest(fixtures.TestBase, AssertsCompiledSQL): __dialect__ = mysql.dialect() @@ -29,7 +29,7 @@ class CompileTest(TestBase, AssertsCompiledSQL): self.assert_compile(x, '''SELECT mysql_table.col1, mysql_table.`master_ssl_verify_server_cert` FROM mysql_table''') -class DialectTest(TestBase): +class DialectTest(fixtures.TestBase): __only_on__ = 'mysql' @testing.only_on(['mysql+mysqldb', 'mysql+oursql'], @@ -54,7 +54,7 @@ class DialectTest(TestBase): } ) -class TypesTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL): +class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): "Test MySQL column types" __only_on__ = 'mysql' @@ -783,7 +783,7 @@ class TypesTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL): finally: enum_table.drop() -class ReflectionTest(TestBase, AssertsExecutionResults): +class ReflectionTest(fixtures.TestBase, AssertsExecutionResults): __only_on__ = 'mysql' @@ -1045,7 +1045,7 @@ class ReflectionTest(TestBase, AssertsExecutionResults): -class SQLTest(TestBase, AssertsCompiledSQL): +class SQLTest(fixtures.TestBase, AssertsCompiledSQL): """Tests MySQL-dialect specific compilation.""" __dialect__ = mysql.dialect() @@ -1333,7 +1333,7 @@ class SQLTest(TestBase, AssertsCompiledSQL): 'INTEGER NOT NULL, PRIMARY KEY ' '(assigned_id, id))ENGINE=InnoDB') -class SQLModeDetectionTest(TestBase): +class SQLModeDetectionTest(fixtures.TestBase): __only_on__ = 'mysql' def _options(self, modes): @@ -1377,7 +1377,7 @@ class SQLModeDetectionTest(TestBase): c.close() engine.dispose() -class RawReflectionTest(TestBase): +class RawReflectionTest(fixtures.TestBase): def setup(self): dialect = mysql.dialect() self.parser = mysql.MySQLTableDefinitionParser(dialect, dialect.identifier_preparer) @@ -1393,7 +1393,7 @@ class RawReflectionTest(TestBase): assert regex.match(' PRIMARY KEY (`id`) USING BTREE') -class ExecutionTest(TestBase): +class ExecutionTest(fixtures.TestBase): """Various MySQL execution special cases.""" __only_on__ = 'mysql' @@ -1413,7 +1413,7 @@ class ExecutionTest(TestBase): d = testing.db.scalar(func.sysdate()) assert isinstance(d, datetime.datetime) -class MatchTest(TestBase, AssertsCompiledSQL): +class MatchTest(fixtures.TestBase, AssertsCompiledSQL): __only_on__ = 'mysql' @classmethod |