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)
| 189 | |
| 190 | |
| 191 | def 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 | |
| 201 | def require_torch(test_case): |
nothing calls this directly
no outgoing calls
no test coverage detected