MCPcopy
hub / github.com/django/django / skipUnlessDBFeature

Function skipUnlessDBFeature

django/test/testcases.py:1632–1638  ·  view source on GitHub ↗

Skip a test unless a database has all the named features.

(*features)

Source from the content-addressed store, hash-verified

1630
1631
1632def skipUnlessDBFeature(*features):
1633 """Skip a test unless a database has all the named features."""
1634 return _deferredSkip(
1635 lambda: not all(getattr(connection.features, feature) for feature in features),
1636 "Database doesn't support feature(s): %s" % ", ".join(features),
1637 "skipUnlessDBFeature",
1638 )
1639
1640
1641def skipUnlessAnyDBFeature(*features):

Callers

nothing calls this directly

Calls 2

_deferredSkipFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…