MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / only_if

Function only_if

lib/sqlalchemy/testing/exclusions.py:197–199  ·  view source on GitHub ↗
(predicate, reason=None)

Source from the content-addressed store, hash-verified

195
196
197def only_if(predicate, reason=None):
198 predicate = _as_predicate(predicate)
199 return skip_if(NotPredicate(predicate), reason)
200
201
202def succeeds_if(predicate, reason=None):

Callers 15

autocommitMethod · 0.90
ctes_on_dmlMethod · 0.90
window_functionsMethod · 0.90
_has_pg_extensionMethod · 0.90
mysql_fspMethod · 0.90

Calls 2

skip_ifFunction · 0.85
NotPredicateClass · 0.85

Tested by

no test coverage detected