summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-09-20 17:25:16 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-09-20 17:25:16 -0400
commit0767aa78be363a5872100c9bb02b377133c6edef (patch)
tree0d8bcea5a5713b95eb4a0ba2a5b0e862642f4ca4 /tests
parentff74edfc7e1dab3f6e19c546eb956fbd0bae30d8 (diff)
downloadalembic-0767aa78be363a5872100c9bb02b377133c6edef.tar.gz
- fix this to be a definite non native boolean dialect
Diffstat (limited to 'tests')
-rw-r--r--tests/test_autogen_render.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_autogen_render.py b/tests/test_autogen_render.py
index fbb661f..da17bd2 100644
--- a/tests/test_autogen_render.py
+++ b/tests/test_autogen_render.py
@@ -10,6 +10,7 @@ from sqlalchemy import MetaData, Column, Table, String, \
from sqlalchemy.types import TIMESTAMP
from sqlalchemy.dialects import mysql, postgresql
+from sqlalchemy.engine.default import DefaultDialect
from sqlalchemy.sql import and_, column, literal_column, false
from alembic.testing.mock import patch
@@ -862,12 +863,13 @@ render:primary_key\n)"""
'updated_at', Boolean(),
server_default=false(),
nullable=False)
+ dialect = DefaultDialect()
autogen_context = {
'opts': {
'sqlalchemy_module_prefix': 'sa.',
'alembic_module_prefix': 'op.',
},
- 'dialect': mysql.dialect()
+ 'dialect': dialect
}
result = autogenerate.render._render_column(