MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / skip_if_quick

Function skip_if_quick

tests/test_utils.py:250–257  ·  view source on GitHub ↗

Skip the unit tests if environment variable `quick_test_var=true`. For example, the user can skip the relevant tests by setting ``export QUICKTEST=true``.

(obj)

Source from the content-addressed store, hash-verified

248
249
250def skip_if_quick(obj):
251 """
252 Skip the unit tests if environment variable `quick_test_var=true`.
253 For example, the user can skip the relevant tests by setting ``export QUICKTEST=true``.
254 """
255 is_quick = test_is_quick()
256
257 return unittest.skipIf(is_quick, "Skipping slow tests")(obj)
258
259
260class SkipIfNoModule:

Callers

nothing calls this directly

Calls 1

test_is_quickFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…