MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _format_description

Method _format_description

lib/sqlalchemy/testing/exclusions.py:244–257  ·  view source on GitHub ↗
(self, config, negate=False)

Source from the content-addressed store, hash-verified

242 assert False, "unknown predicate type: %s" % predicate
243
244 def _format_description(self, config, negate=False):
245 bool_ = self(config)
246 if negate:
247 bool_ = not negate
248 return self.description % {
249 "driver": (
250 config.db.url.get_driver_name() if config else "<no driver>"
251 ),
252 "database": (
253 config.db.url.get_backend_name() if config else "<no database>"
254 ),
255 "doesnt_support": "doesn't support" if bool_ else "does support",
256 "does_support": "does support" if bool_ else "doesn't support",
257 }
258
259 def _as_string(self, config=None, negate=False):
260 raise NotImplementedError()

Callers 6

_as_stringMethod · 0.80
_as_stringMethod · 0.80
_as_stringMethod · 0.80
_as_stringMethod · 0.80
_negation_strMethod · 0.80
_as_stringMethod · 0.80

Calls 2

get_driver_nameMethod · 0.80
get_backend_nameMethod · 0.80

Tested by

no test coverage detected