summaryrefslogtreecommitdiff
path: root/test/dialect/test_mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-04-12 12:21:02 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-04-12 12:21:02 -0400
commit3d66f727f56426592d70d5cf54bbcb891172b6f0 (patch)
treefd0b53c33748a5c8020add16bf6608ce68756bda /test/dialect/test_mysql.py
parentba199ce80ccc7ab20fc254790b0537665c650b9f (diff)
downloadsqlalchemy-3d66f727f56426592d70d5cf54bbcb891172b6f0.tar.gz
- test explicitly for 'VIEW', 'SYSTEM VIEW'
- move the test to the reflection tests
Diffstat (limited to 'test/dialect/test_mysql.py')
-rw-r--r--test/dialect/test_mysql.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py
index da59e7984..5a34a79a0 100644
--- a/test/dialect/test_mysql.py
+++ b/test/dialect/test_mysql.py
@@ -108,13 +108,6 @@ class DialectTest(fixtures.TestBase):
}
)
- @testing.only_on(['mysql'], 'requires information_schema')
- @testing.exclude('mysql', '<', (5, 0, 0), 'no information_schema support')
- def test_system_views(self):
- dialect = testing.db.dialect
- connection = testing.db.connect()
- view_names = dialect.get_view_names(connection, "information_schema")
- self.assert_('TABLES' in view_names)
class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL):
"Test MySQL column types"
@@ -1127,6 +1120,12 @@ class ReflectionTest(fixtures.TestBase, AssertsExecutionResults):
finally:
meta.drop_all()
+ @testing.exclude('mysql', '<', (5, 0, 0), 'no information_schema support')
+ def test_system_views(self):
+ dialect = testing.db.dialect
+ connection = testing.db.connect()
+ view_names = dialect.get_view_names(connection, "information_schema")
+ self.assert_('TABLES' in view_names)
class SQLTest(fixtures.TestBase, AssertsCompiledSQL):