summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2021-01-15 06:35:01 -0700
committerGord Thompson <gord@gordthompson.com>2021-01-15 12:26:44 -0700
commit2503c80caf1ef325a8ae4c5083e48f60bd96d41a (patch)
treee11c9498fba1c73d1340f271d66d1153d84949c2 /lib/sqlalchemy/testing
parente6a99ca991f36b0c6e3b73dfcb3c866409c40700 (diff)
downloadsqlalchemy-2503c80caf1ef325a8ae4c5083e48f60bd96d41a.tar.gz
Add missing requirements to suite tests
Fixes: #5841 Change-Id: I53e8405e6ca8c3fd6909744632b76db724d9eb1f
Diffstat (limited to 'lib/sqlalchemy/testing')
-rw-r--r--lib/sqlalchemy/testing/suite/test_reflection.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_reflection.py b/lib/sqlalchemy/testing/suite/test_reflection.py
index de157d028..916d74db3 100644
--- a/lib/sqlalchemy/testing/suite/test_reflection.py
+++ b/lib/sqlalchemy/testing/suite/test_reflection.py
@@ -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"
)