MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / BooleanPredicate

Class BooleanPredicate

lib/sqlalchemy/testing/exclusions.py:263–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262
263class BooleanPredicate(Predicate):
264 def __init__(self, value, description=None):
265 self.value = value
266 self.description = description or "boolean %s" % value
267
268 def __call__(self, config):
269 return self.value
270
271 def _as_string(self, config, negate=False):
272 return self._format_description(config, negate=negate)
273
274
275class SpecPredicate(Predicate):

Callers 4

openFunction · 0.85
closedFunction · 0.85
failsFunction · 0.85
futureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected