MCPcopy
hub / github.com/django/django / skipUnlessAnyDBFeature

Function skipUnlessAnyDBFeature

django/test/testcases.py:1641–1647  ·  view source on GitHub ↗

Skip a test unless a database has any of the named features.

(*features)

Source from the content-addressed store, hash-verified

1639
1640
1641def skipUnlessAnyDBFeature(*features):
1642 """Skip a test unless a database has any of the named features."""
1643 return _deferredSkip(
1644 lambda: not any(getattr(connection.features, feature) for feature in features),
1645 "Database doesn't support any of the feature(s): %s" % ", ".join(features),
1646 "skipUnlessAnyDBFeature",
1647 )
1648
1649
1650class QuietWSGIRequestHandler(WSGIRequestHandler):

Callers

nothing calls this directly

Calls 2

_deferredSkipFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected