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

Function nightly

src/diffusers/utils/testing_utils.py:191–198  ·  view source on GitHub ↗

Decorator marking a test that runs nightly in the diffusers CI. Slow tests are skipped by default. Set the RUN_NIGHTLY environment variable to a truthy value to run them.

(test_case)

Source from the content-addressed store, hash-verified

189
190
191def nightly(test_case):
192 """
193 Decorator marking a test that runs nightly in the diffusers CI.
194
195 Slow tests are skipped by default. Set the RUN_NIGHTLY environment variable to a truthy value to run them.
196
197 """
198 return unittest.skipUnless(_run_nightly_tests, "test is nightly")(test_case)
199
200
201def require_torch(test_case):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected