diff options
author | gordthompson <gord@gordthompson.com> | 2021-06-23 06:13:02 -0600 |
---|---|---|
committer | Gord Thompson <gord@gordthompson.com> | 2021-06-23 06:54:57 -0600 |
commit | 56a21371e7d9c5db22632e1481c3ca91e6733b8e (patch) | |
tree | b4ef949ef35039e9787d936974ff6e302035e7e8 /alembic | |
parent | b1e5a23c0f53482dd06b013ce8a9453dd0e5eb5d (diff) | |
download | alembic-56a21371e7d9c5db22632e1481c3ca91e6733b8e.tar.gz |
Add requirement to AutogenerateForeignKeysTest
Change-Id: I4c4313488870f8975ced451709bd2a99fa530271
Diffstat (limited to 'alembic')
-rw-r--r-- | alembic/testing/requirements.py | 4 | ||||
-rw-r--r-- | alembic/testing/suite/test_autogen_fks.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/alembic/testing/requirements.py b/alembic/testing/requirements.py index 92fe372..dac7ecd 100644 --- a/alembic/testing/requirements.py +++ b/alembic/testing/requirements.py @@ -53,6 +53,10 @@ class SuiteRequirements(Requirements): return exclusions.open() @property + def foreign_key_constraint_reflection(self): + return exclusions.open() + + @property def check_constraints_w_enforcement(self): """Target database must support check constraints and also enforce them.""" diff --git a/alembic/testing/suite/test_autogen_fks.py b/alembic/testing/suite/test_autogen_fks.py index 323beb6..f369b4c 100644 --- a/alembic/testing/suite/test_autogen_fks.py +++ b/alembic/testing/suite/test_autogen_fks.py @@ -18,6 +18,7 @@ py3k = compat.py3k class AutogenerateForeignKeysTest(AutogenFixtureTest, TestBase): __backend__ = True + __requires__ = ("foreign_key_constraint_reflection",) def test_remove_fk(self): m1 = MetaData() |