Decorator marking a test that runs compile tests in the diffusers CI. Compile tests are skipped by default. Set the RUN_COMPILE environment variable to a truthy value to run them.
(test_case)
| 227 | |
| 228 | |
| 229 | def is_torch_compile(test_case): |
| 230 | """ |
| 231 | Decorator marking a test that runs compile tests in the diffusers CI. |
| 232 | |
| 233 | Compile tests are skipped by default. Set the RUN_COMPILE environment variable to a truthy value to run them. |
| 234 | |
| 235 | """ |
| 236 | return unittest.skipUnless(_run_compile_tests, "test is torch compile")(test_case) |
| 237 | |
| 238 | |
| 239 | def require_torch(test_case): |
nothing calls this directly
no outgoing calls
no test coverage detected