From d6247c218900ba274d7919887950fb2da4e4cc8c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 16 Oct 2015 13:35:59 -0400 Subject: [PATCH] - make the assertion more specific here --- tests/test_batch.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/test_batch.py b/tests/test_batch.py index c846845c..813b15da 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -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): -- 2.47.2