diff options
author | Roman Podolyaka <roman.podolyaka@gmail.com> | 2013-06-22 15:57:03 +0300 |
---|---|---|
committer | Roman Podolyaka <roman.podolyaka@gmail.com> | 2013-06-23 13:35:19 +0300 |
commit | 3a80bf0d504ccc1e198249be27d87a6045c39ee4 (patch) | |
tree | ce02249b36a2583ec4912abb0cf86ec36652d6c2 /lib/sqlalchemy/testing/suite/test_reflection.py | |
parent | 1ad06ea42c69c10f18c5d43d4d4a68223cbef52e (diff) | |
download | sqlalchemy-pr/11.tar.gz |
Fix unique constraints reflection in PostgreSQLpr/11
Reflection of unique constraints must preserve the order of columns.
Diffstat (limited to 'lib/sqlalchemy/testing/suite/test_reflection.py')
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_reflection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_reflection.py b/lib/sqlalchemy/testing/suite/test_reflection.py index 7ab4097a1..255fd5595 100644 --- a/lib/sqlalchemy/testing/suite/test_reflection.py +++ b/lib/sqlalchemy/testing/suite/test_reflection.py @@ -370,9 +370,9 @@ class ComponentReflectionTest(fixtures.TablesTest): def _test_get_unique_constraints(self, schema=None): uniques = sorted( [ + {'name': 'unique_a', 'column_names': ['a']}, {'name': 'unique_a_b_c', 'column_names': ['a', 'b', 'c']}, - {'name': 'unique_a_c', 'column_names': ['a', 'c']}, - {'name': 'unique_b_c', 'column_names': ['b', 'c']}, + {'name': 'unique_c_a_b', 'column_names': ['c', 'a', 'b']}, {'name': 'unique_asc_key', 'column_names': ['asc', 'key']}, ], key=operator.itemgetter('name') |