MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / require_compel

Function require_compel

src/diffusers/utils/testing_utils.py:266–271  ·  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

264
265
266def require_compel(test_case):
267 """
268 Decorator marking a test that requires compel: https://github.com/damian0815/compel. These tests are skipped when
269 the library is not installed.
270 """
271 return unittest.skipUnless(is_compel_available(), "test requires compel")(test_case)
272
273
274def require_onnxruntime(test_case):

Callers

nothing calls this directly

Calls 1

is_compel_availableFunction · 0.85

Tested by

no test coverage detected