]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- make the assertion more specific here
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 16 Oct 2015 17:35:59 +0000 (13:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 16 Oct 2015 17:35:59 +0000 (13:35 -0400)
tests/test_batch.py

index c846845cdd9a79c6d6eddb381c4754497689c0d4..813b15da78bc1b6e2352159ab15f14494b1db371 100644 (file)
@@ -895,11 +895,14 @@ class BatchRoundTripTest(TestBase):
 
         insp = Inspector.from_engine(config.db)
         eq_(
-            sorted(insp.get_indexes('t_w_ix'), key=lambda idx: idx['name']),
-            [
-                {'unique': 0, 'name': 'ix_data', 'column_names': ['data']},
-                {'unique': 0, 'name': 'ix_thing', 'column_names': ['thing']}
-            ]
+            set(
+                (ix['name'], tuple(ix['column_names'])) for ix in
+                insp.get_indexes('t_w_ix')
+            ),
+            set([
+                ('ix_data', ('data',)),
+                ('ix_thing', ('thing', ))
+            ])
         )
 
     def test_fk_points_to_me_auto(self):