summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2021-10-23 16:41:19 -0600
committerMike Bayer <mike_mp@zzzcomputing.com>2021-10-23 21:05:16 -0400
commit9ed211a15eacb5fa32825129f642a40c54b83ea0 (patch)
tree777163c7f5c5fe72887feab5aec0e7d32eec5d2a /tests
parent27f4133c5de1b721489e9af733038d3dc7394e79 (diff)
downloadalembic-9ed211a15eacb5fa32825129f642a40c54b83ea0.tar.gz
Adjust test requirements for mssql
SQLAlchemy added FK onupdate/ondelete reflection in 1.4.26 Change-Id: Ie4e95294fe3857ea1f28a67a7a78ca9213e8e8f8
Diffstat (limited to 'tests')
-rw-r--r--tests/requirements.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/requirements.py b/tests/requirements.py
index 61c3562..7770da9 100644
--- a/tests/requirements.py
+++ b/tests/requirements.py
@@ -97,11 +97,23 @@ class DefaultRequirements(SuiteRequirements):
@property
def fk_ondelete_is_reflected(self):
- return exclusions.fails_on(["mssql"])
+ def go(config):
+ if exclusions.against(config, "mssql"):
+ return not sqla_compat.sqla_14_26
+ else:
+ return False
+
+ return exclusions.fails_if(go)
@property
def fk_onupdate_is_reflected(self):
- return self.fk_onupdate + exclusions.fails_on(["mssql"])
+ def go(config):
+ if exclusions.against(config, "mssql"):
+ return not sqla_compat.sqla_14_26
+ else:
+ return False
+
+ return self.fk_onupdate + exclusions.fails_if(go)
@property
def fk_onupdate(self):