|
|
a39ca3f |
Remove tests requiring sqlalchemy > 0.7.8
|
|
|
a39ca3f |
See https://bitbucket.org/zzzeek/alembic/commits/d9fc0f82a298a858d9412fe0b270e640639dcc7a
|
|
|
a39ca3f |
|
|
|
a39ca3f |
diff -Naur alembic-0.4.2.orig/tests/test_autogenerate.py alembic-0.4.2/tests/test_autogenerate.py
|
|
|
a39ca3f |
--- alembic-0.4.2.orig/tests/test_autogenerate.py 2013-01-11 16:12:49.000000000 +0000
|
|
|
a39ca3f |
+++ alembic-0.4.2/tests/test_autogenerate.py 2013-03-15 12:43:52.881966999 +0000
|
|
|
a39ca3f |
@@ -1,6 +1,6 @@
|
|
|
a39ca3f |
from sqlalchemy import MetaData, Column, Table, Integer, String, Text, \
|
|
|
a39ca3f |
Numeric, CHAR, ForeignKey, DATETIME, \
|
|
|
a39ca3f |
- TypeDecorator, CheckConstraint, Unicode, Enum,\
|
|
|
a39ca3f |
+ TypeDecorator, CheckConstraint, Unicode,\
|
|
|
a39ca3f |
UniqueConstraint, Boolean, ForeignKeyConstraint
|
|
|
a39ca3f |
from sqlalchemy.types import NULLTYPE, TIMESTAMP
|
|
|
a39ca3f |
from sqlalchemy.dialects import mysql
|
|
|
a39ca3f |
@@ -1070,20 +1070,4 @@
|
|
|
a39ca3f |
"existing_server_default='5')"
|
|
|
a39ca3f |
)
|
|
|
a39ca3f |
|
|
|
a39ca3f |
- def test_render_enum(self):
|
|
|
a39ca3f |
- eq_ignore_whitespace(
|
|
|
a39ca3f |
- autogenerate._repr_type(
|
|
|
a39ca3f |
- "sa.",
|
|
|
a39ca3f |
- Enum("one", "two", "three", name="myenum"),
|
|
|
a39ca3f |
- self.autogen_context),
|
|
|
a39ca3f |
- "sa.Enum('one', 'two', 'three', name='myenum')"
|
|
|
a39ca3f |
- )
|
|
|
a39ca3f |
- eq_ignore_whitespace(
|
|
|
a39ca3f |
- autogenerate._repr_type(
|
|
|
a39ca3f |
- "sa.",
|
|
|
a39ca3f |
- Enum("one", "two", "three"),
|
|
|
a39ca3f |
- self.autogen_context),
|
|
|
a39ca3f |
- "sa.Enum('one', 'two', 'three')"
|
|
|
a39ca3f |
- )
|
|
|
a39ca3f |
-
|
|
|
a39ca3f |
# TODO: tests for dialect-specific type rendering + imports
|
|
|
a39ca3f |
diff -Naur alembic-0.4.2.orig/tests/test_op.py alembic-0.4.2/tests/test_op.py
|
|
|
a39ca3f |
--- alembic-0.4.2.orig/tests/test_op.py 2013-01-11 16:12:49.000000000 +0000
|
|
|
a39ca3f |
+++ alembic-0.4.2/tests/test_op.py 2013-03-15 12:46:13.362695693 +0000
|
|
|
a39ca3f |
@@ -457,13 +457,6 @@
|
|
|
a39ca3f |
"DROP INDEX ik_test"
|
|
|
a39ca3f |
)
|
|
|
a39ca3f |
|
|
|
a39ca3f |
-def test_drop_index_schema():
|
|
|
a39ca3f |
- context = op_fixture()
|
|
|
a39ca3f |
- op.drop_index('ik_test', schema='foo')
|
|
|
a39ca3f |
- context.assert_(
|
|
|
a39ca3f |
- "DROP INDEX foo.ik_test"
|
|
|
a39ca3f |
- )
|
|
|
a39ca3f |
-
|
|
|
a39ca3f |
def test_drop_table():
|
|
|
a39ca3f |
context = op_fixture()
|
|
|
a39ca3f |
op.drop_table('tb_test')
|