MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / only_on

Function only_on

lib/sqlalchemy/testing/exclusions.py:460–465  ·  view source on GitHub ↗
(dbs, reason=None)

Source from the content-addressed store, hash-verified

458
459
460def only_on(dbs, reason=None):
461 return only_if(
462 OrPredicate(
463 [Predicate.as_predicate(db, reason) for db in util.to_list(dbs)]
464 )
465 )
466
467
468def exclude(db, op, spec, reason=None):

Calls 3

only_ifFunction · 0.85
OrPredicateClass · 0.85
as_predicateMethod · 0.80

Tested by

no test coverage detected