MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / NotPredicate

Class NotPredicate

lib/sqlalchemy/testing/exclusions.py:358–370  ·  lib/sqlalchemy/testing/exclusions.py::NotPredicate

Source from the content-addressed store, hash-verified

356
357
358class NotPredicate(Predicate):
359 def __init__(self, predicate, description=None):
360 self.predicate = predicate
361 self.description = description
362
363 def __call__(self, config):
364 return not self.predicate(config)
365
366 def _as_string(self, config, negate=False):
367 if self.description:
368 return self._format_description(config, not negate)
369 else:
370 return self.predicate._as_string(config, not negate)
371
372
373class OrPredicate(Predicate):

Callers 4

not_Method · 0.85
only_ifFunction · 0.85
succeeds_ifFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected