]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
the name shouldn't be needed here
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jul 2012 11:30:29 +0000 (07:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jul 2012 11:30:29 +0000 (07:30 -0400)
tests/test_op.py

index e9799bc765be3c0f8bc4cd863aa63743c35d8000..b7abaef9df7b32a052d2013cd4adee74f42c1fd1 100644 (file)
@@ -155,14 +155,14 @@ def test_alter_column_schema_type_existing_type():
 
 def test_alter_column_schema_type_existing_type_no_const():
     context = op_fixture('postgresql')
-    op.alter_column("t", "c", type_=String(10), existing_type=Boolean(name="xyz"))
+    op.alter_column("t", "c", type_=String(10), existing_type=Boolean())
     context.assert_(
         'ALTER TABLE t ALTER COLUMN c TYPE VARCHAR(10)'
     )
 
 def test_alter_column_schema_type_existing_type_no_new_type():
     context = op_fixture('postgresql')
-    op.alter_column("t", "c", nullable=False, existing_type=Boolean(name="xyz"))
+    op.alter_column("t", "c", nullable=False, existing_type=Boolean())
     context.assert_(
         'ALTER TABLE t ALTER COLUMN c SET NOT NULL'
     )