()
| 51 | |
| 52 | |
| 53 | def test_submit_jobs() -> None: |
| 54 | args_1 =\ |
| 55 | { |
| 56 | 'source_path': 'source-1.jpg', |
| 57 | 'target_path': 'target-1.jpg', |
| 58 | 'output_path': 'output-1.jpg' |
| 59 | } |
| 60 | args_2 =\ |
| 61 | { |
| 62 | 'source_path': 'source-2.jpg', |
| 63 | 'target_path': 'target-2.jpg', |
| 64 | 'output_path': 'output-2.jpg' |
| 65 | } |
| 66 | halt_on_error = True |
| 67 | |
| 68 | assert submit_jobs(halt_on_error) is False |
| 69 | |
| 70 | create_job('job-test-submit-jobs-1') |
| 71 | create_job('job-test-submit-jobs-2') |
| 72 | |
| 73 | assert submit_jobs(halt_on_error) is False |
| 74 | |
| 75 | add_step('job-test-submit-jobs-1', args_1) |
| 76 | add_step('job-test-submit-jobs-2', args_2) |
| 77 | |
| 78 | assert submit_jobs(halt_on_error) is True |
| 79 | assert submit_jobs(halt_on_error) is False |
| 80 | |
| 81 | |
| 82 | def test_delete_job() -> None: |
nothing calls this directly
no test coverage detected