MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / require_compel

Function require_compel

diffusers/src/diffusers/utils/testing_utils.py:330–335  ·  view source on GitHub ↗

Decorator marking a test that requires compel: https://github.com/damian0815/compel. These tests are skipped when the library is not installed.

(test_case)

Source from the content-addressed store, hash-verified

328
329
330def require_compel(test_case):
331 """
332 Decorator marking a test that requires compel: https://github.com/damian0815/compel. These tests are skipped when
333 the library is not installed.
334 """
335 return unittest.skipUnless(is_compel_available(), "test requires compel")(test_case)
336
337
338def require_onnxruntime(test_case):

Callers

nothing calls this directly

Calls 1

is_compel_availableFunction · 0.85

Tested by

no test coverage detected