summaryrefslogtreecommitdiff
path: root/migrate/tests/changeset/test_constraint.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-06-30 11:46:12 -0400
committerMatt Riedemann <mriedem@us.ibm.com>2015-07-01 20:01:52 +0000
commita94dae7a01193f34ec2ec900af6aaa8c72d8c881 (patch)
treec403cdad2fac1c446fac6d44c72818833a5f5340 /migrate/tests/changeset/test_constraint.py
parentb8def7cbfb64085969d0876360b723836c312930 (diff)
downloadsqlalchemy-migrate-a94dae7a01193f34ec2ec900af6aaa8c72d8c881.tar.gz
Update tests and reqs for SQLA 1.0
Lift the requirements to support SQLAlchemy 1.0. Two tests were calling upon revised APIs and required adjustment. Change-Id: Ic91a91bb3c915027b522eace302f2ed074233294
Diffstat (limited to 'migrate/tests/changeset/test_constraint.py')
-rw-r--r--migrate/tests/changeset/test_constraint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/migrate/tests/changeset/test_constraint.py b/migrate/tests/changeset/test_constraint.py
index 1faf4cc..325b3c0 100644
--- a/migrate/tests/changeset/test_constraint.py
+++ b/migrate/tests/changeset/test_constraint.py
@@ -5,6 +5,7 @@ from sqlalchemy import *
from sqlalchemy.util import *
from sqlalchemy.exc import *
+from migrate.changeset.util import fk_column_names
from migrate.exceptions import *
from migrate.changeset import *
@@ -91,7 +92,7 @@ class TestConstraint(CommonTestConstraint):
self.assertTrue(list(self.table.c.fkey.foreign_keys) is not [])
else:
self.assertTrue(self.table.c.fkey.foreign_keys._list is not [])
- for key in fk.columns:
+ for key in fk_column_names(fk):
self.assertEqual(key, self.table.c.fkey.name)
self.assertEqual([e.column for e in fk.elements], [self.table.c.id])
self.assertEqual(list(fk.referenced), [self.table.c.id])