]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add missing requirements to suite tests
authorGord Thompson <gord@gordthompson.com>
Fri, 15 Jan 2021 13:35:01 +0000 (06:35 -0700)
committerGord Thompson <gord@gordthompson.com>
Fri, 15 Jan 2021 19:26:44 +0000 (12:26 -0700)
Fixes: #5841
Change-Id: I53e8405e6ca8c3fd6909744632b76db724d9eb1f

lib/sqlalchemy/testing/suite/test_reflection.py

index de157d028d8dda1fe40ceba8276be8dbaedf934f..916d74db317cdb685013883b25ea5d0126957712 100644 (file)
@@ -523,6 +523,7 @@ class ComponentReflectionTest(fixtures.TablesTest):
         insp = inspect(self.bind)
         eq_(insp.default_schema_name, self.bind.dialect.default_schema_name)
 
+    @testing.requires.foreign_key_constraint_reflection
     @testing.combinations(
         (None, True, False, False),
         (None, True, False, True, testing.requires.schemas),
@@ -630,8 +631,12 @@ class ComponentReflectionTest(fixtures.TablesTest):
     @testing.combinations(
         (False, False),
         (False, True, testing.requires.schemas),
-        (True, False),
-        (False, True, testing.requires.schemas),
+        (True, False, testing.requires.view_reflection),
+        (
+            True,
+            True,
+            testing.requires.schemas + testing.requires.view_reflection,
+        ),
         argnames="use_views,use_schema",
     )
     def test_get_columns(self, connection, use_views, use_schema):
@@ -999,6 +1004,7 @@ class ComponentReflectionTest(fixtures.TablesTest):
             eq_(names_that_duplicate_index, idx_names)
             eq_(uq_names, set())
 
+    @testing.requires.view_reflection
     @testing.combinations(
         (False,), (True, testing.requires.schemas), argnames="use_schema"
     )