()
| 104 | |
| 105 | |
| 106 | def test_retry_job() -> None: |
| 107 | args_1 =\ |
| 108 | { |
| 109 | 'source_path': get_test_example_file('source.jpg'), |
| 110 | 'target_path': get_test_example_file('target-240p.mp4'), |
| 111 | 'output_path': get_test_output_file('output-1.mp4') |
| 112 | } |
| 113 | |
| 114 | assert retry_job('job-invalid', process_step) is False |
| 115 | |
| 116 | create_job('job-test-retry-job') |
| 117 | add_step('job-test-retry-job', args_1) |
| 118 | submit_job('job-test-retry-job') |
| 119 | |
| 120 | assert retry_job('job-test-retry-job', process_step) is False |
| 121 | |
| 122 | move_job_file('job-test-retry-job', 'failed') |
| 123 | |
| 124 | assert retry_job('job-test-retry-job', process_step) is True |
| 125 | |
| 126 | |
| 127 | def test_retry_jobs() -> None: |
nothing calls this directly
no test coverage detected