From: Mike Bayer Date: Fri, 6 Dec 2013 21:37:38 +0000 (-0500) Subject: - test adjustments to account for SQLAlchemy pullreq #7, MSSQL DROP INDEX syntax X-Git-Tag: rel_0_6_2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da054c2981c641b615e0f01f2220cde9ffad39ce;p=thirdparty%2Fsqlalchemy%2Falembic.git - test adjustments to account for SQLAlchemy pullreq #7, MSSQL DROP INDEX syntax --- diff --git a/tests/test_mssql.py b/tests/test_mssql.py index 74bda8b7..c0182b2d 100644 --- a/tests/test_mssql.py +++ b/tests/test_mssql.py @@ -86,7 +86,7 @@ class OpTest(TestCase): context = op_fixture('mssql') op.drop_index('my_idx', 'my_table') # TODO: annoying that SQLA escapes unconditionally - context.assert_contains("DROP INDEX [my_table].my_idx") + context.assert_contains("DROP INDEX my_idx ON my_table") def test_drop_column_w_default(self): context = op_fixture('mssql') diff --git a/tests/test_op.py b/tests/test_op.py index 581b6066..e5f6be53 100644 --- a/tests/test_op.py +++ b/tests/test_op.py @@ -642,11 +642,7 @@ def test_naming_changes(): context = op_fixture('mssql') op.drop_index('ik_test', tablename='t1') - context.assert_("DROP INDEX [t1].ik_test") - - context = op_fixture('mssql') - op.drop_index('ik_test', table_name='t1') - context.assert_("DROP INDEX [t1].ik_test") + context.assert_("DROP INDEX ik_test ON t1") context = op_fixture('mysql') op.drop_constraint("f1", "t1", type="foreignkey")