]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
assert unique constraints received back
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 24 Nov 2022 14:52:12 +0000 (09:52 -0500)
committermike bayer <mike_mp@zzzcomputing.com>
Thu, 24 Nov 2022 15:19:12 +0000 (15:19 +0000)
in #8867 we can see our existing uq reflection test is
broken, not detecting a failure to detect constraints

Change-Id: Icada02bc0547c5a3d8c471b80a78a2e72f02647d
(cherry picked from commit f99300c4e8d1317a94cbfeaec6fe22de8f1159f7)

lib/sqlalchemy/testing/suite/test_reflection.py

index 3f234d2ea9c36738c5cf5996b61b4cefe00a75c7..12949fe02bb16414216df341696ac398025d0d41 100644 (file)
@@ -1079,6 +1079,8 @@ class ComponentReflectionTest(OneConnectionTablesTest):
 
         names_that_duplicate_index = set()
 
+        eq_(len(uniques), len(reflected))
+
         for orig, refl in zip(uniques, reflected):
             # Different dialects handle duplicate index and constraints
             # differently, so ignore this flag