()
| 67 | |
| 68 | |
| 69 | def test_run_jobs() -> None: |
| 70 | args_1 =\ |
| 71 | { |
| 72 | 'source_path': get_test_example_file('source.jpg'), |
| 73 | 'target_path': get_test_example_file('target-240p.mp4'), |
| 74 | 'output_path': get_test_output_file('output-1.mp4') |
| 75 | } |
| 76 | args_2 =\ |
| 77 | { |
| 78 | 'source_path': get_test_example_file('source.jpg'), |
| 79 | 'target_path': get_test_example_file('target-240p.mp4'), |
| 80 | 'output_path': get_test_output_file('output-2.mp4') |
| 81 | } |
| 82 | args_3 =\ |
| 83 | { |
| 84 | 'source_path': get_test_example_file('source.jpg'), |
| 85 | 'target_path': get_test_example_file('target-240p.jpg'), |
| 86 | 'output_path': get_test_output_file('output-3.jpg') |
| 87 | } |
| 88 | halt_on_error = True |
| 89 | |
| 90 | assert run_jobs(process_step, halt_on_error) is False |
| 91 | |
| 92 | create_job('job-test-run-jobs-1') |
| 93 | create_job('job-test-run-jobs-2') |
| 94 | add_step('job-test-run-jobs-1', args_1) |
| 95 | add_step('job-test-run-jobs-1', args_1) |
| 96 | add_step('job-test-run-jobs-2', args_2) |
| 97 | add_step('job-test-run-jobs-3', args_3) |
| 98 | |
| 99 | assert run_jobs(process_step, halt_on_error) is False |
| 100 | |
| 101 | submit_jobs(halt_on_error) |
| 102 | |
| 103 | assert run_jobs(process_step, halt_on_error) is True |
| 104 | |
| 105 | |
| 106 | def test_retry_job() -> None: |
nothing calls this directly
no test coverage detected