summaryrefslogtreecommitdiff
path: root/tests/requirements.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/requirements.py')
-rw-r--r--tests/requirements.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/requirements.py b/tests/requirements.py
index 04497f5..fc971b1 100644
--- a/tests/requirements.py
+++ b/tests/requirements.py
@@ -38,6 +38,17 @@ class DefaultRequirements(SuiteRequirements):
)
@property
+ def non_native_boolean_check_constraint(self):
+ """backend creates a check constraint for booleans if enabled"""
+
+ return exclusions.only_on(
+ exclusions.LambdaPredicate(
+ lambda config: not config.db.dialect.supports_native_boolean
+ and config.db.dialect.non_native_boolean_check_constraint
+ )
+ )
+
+ @property
def check_constraints_w_enforcement(self):
return exclusions.fails_on(["mysql", "mariadb"])