Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
197
def
only_if(predicate, reason=None):
198
predicate = _as_predicate(predicate)
199
return
skip_if(NotPredicate(predicate), reason)
200
201
202
def
succeeds_if(predicate, reason=None):
Callers
15
autocommit
Method · 0.90
sql_expressions_inserted_as_primary_key
Method · 0.90
ctes_on_dml
Method · 0.90
mod_operator_as_percent_sign
Method · 0.90
window_functions
Method · 0.90
window_range_non_numeric
Method · 0.90
string_type_isnt_subtype
Method · 0.90
_has_pg_extension
Method · 0.90
_has_oracle_test_dblink
Method · 0.90
pyodbc_fast_executemany
Method · 0.90
mysql_fsp
Method · 0.90
mysql_notnull_generated_columns
Method · 0.90
Calls
2
skip_if
Function · 0.85
NotPredicate
Class · 0.85
Tested by
no test coverage detected