MCPcopy
hub / github.com/django/django / skipIfDBFeature

Function skipIfDBFeature

django/test/testcases.py:1623–1629  ·  view source on GitHub ↗

Skip a test if a database has at least one of the named features.

(*features)

Source from the content-addressed store, hash-verified

1621
1622
1623def skipIfDBFeature(*features):
1624 """Skip a test if a database has at least one of the named features."""
1625 return _deferredSkip(
1626 lambda: any(getattr(connection.features, feature) for feature in features),
1627 "Database has feature(s) %s" % ", ".join(features),
1628 "skipIfDBFeature",
1629 )
1630
1631
1632def skipUnlessDBFeature(*features):

Callers

nothing calls this directly

Calls 2

_deferredSkipFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected