]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixes Issue #8288 8289/head
authorJohn Lennox <john.lennox@comcast.net>
Sun, 21 Aug 2022 01:22:59 +0000 (21:22 -0400)
committerJohn Lennox <john.lennox@comcast.net>
Sun, 21 Aug 2022 01:22:59 +0000 (21:22 -0400)
Added patch from @zzzeek to address reflection test

lib/sqlalchemy/testing/suite/test_reflection.py

index a3737a91a1463531e3618ff10d814da1aa7b8a8d..7e54ee57a0d222f6334af8b54e202f53de5b6c63 100644 (file)
@@ -2396,20 +2396,25 @@ class ComponentReflectionTestExtra(ComparesIndexes, fixtures.TestBase):
 
         insp = inspect(connection)
 
+        get_indexes = insp.get_indexes("t")
         eq_(
-            insp.get_indexes("t"),
+            get_indexes,
             [
                 {
                     "name": "t_idx",
                     "column_names": ["x"],
                     "include_columns": ["y"],
                     "unique": False,
-                    "dialect_options": {
-                        "%s_include" % connection.engine.name: ["y"]
-                    },
+                    "dialect_options": mock.ANY,
                 }
             ],
         )
+        eq_(
+            get_indexes[0]["dialect_options"][
+                "%s_include" % connection.engine.name
+            ],
+            ["y"],
+        )
 
         t2 = Table("t", MetaData(), autoload_with=connection)
         eq_(