()
| 32 | |
| 33 | |
| 34 | def test_run_job() -> None: |
| 35 | args_1 =\ |
| 36 | { |
| 37 | 'source_path': get_test_example_file('source.jpg'), |
| 38 | 'target_path': get_test_example_file('target-240p.mp4'), |
| 39 | 'output_path': get_test_output_file('output-1.mp4') |
| 40 | } |
| 41 | args_2 =\ |
| 42 | { |
| 43 | 'source_path': get_test_example_file('source.jpg'), |
| 44 | 'target_path': get_test_example_file('target-240p.mp4'), |
| 45 | 'output_path': get_test_output_file('output-2.mp4') |
| 46 | } |
| 47 | args_3 =\ |
| 48 | { |
| 49 | 'source_path': get_test_example_file('source.jpg'), |
| 50 | 'target_path': get_test_example_file('target-240p.jpg'), |
| 51 | 'output_path': get_test_output_file('output-3.jpg') |
| 52 | } |
| 53 | |
| 54 | assert run_job('job-invalid', process_step) is False |
| 55 | |
| 56 | create_job('job-test-run-job') |
| 57 | add_step('job-test-run-job', args_1) |
| 58 | add_step('job-test-run-job', args_2) |
| 59 | add_step('job-test-run-job', args_2) |
| 60 | add_step('job-test-run-job', args_3) |
| 61 | |
| 62 | assert run_job('job-test-run-job', process_step) is False |
| 63 | |
| 64 | submit_job('job-test-run-job') |
| 65 | |
| 66 | assert run_job('job-test-run-job', process_step) is True |
| 67 | |
| 68 | |
| 69 | def test_run_jobs() -> None: |
nothing calls this directly
no test coverage detected