summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-01-15 20:19:15 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2021-01-15 20:19:15 +0000
commit5be3c030b321ecc342bf4cd84cbb0838efacd155 (patch)
treee499c6939d0c075dff759334eae769013f1c06ef
parentb060ed8b4818d9a74d630ac1292386a500f4825c (diff)
parent2503c80caf1ef325a8ae4c5083e48f60bd96d41a (diff)
downloadsqlalchemy-5be3c030b321ecc342bf4cd84cbb0838efacd155.tar.gz
Merge "Add missing requirements to suite tests"
-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"
)