()
| 158 | |
| 159 | |
| 160 | def test_add_step() -> None: |
| 161 | args_1 =\ |
| 162 | { |
| 163 | 'source_path': 'source-1.jpg', |
| 164 | 'target_path': 'target-1.jpg', |
| 165 | 'output_path': 'output-1.jpg' |
| 166 | } |
| 167 | args_2 =\ |
| 168 | { |
| 169 | 'source_path': 'source-2.jpg', |
| 170 | 'target_path': 'target-2.jpg', |
| 171 | 'output_path': 'output-2.jpg' |
| 172 | } |
| 173 | |
| 174 | assert add_step('job-invalid', args_1) is False |
| 175 | |
| 176 | create_job('job-test-add-step') |
| 177 | |
| 178 | assert add_step('job-test-add-step', args_1) is True |
| 179 | assert add_step('job-test-add-step', args_2) is True |
| 180 | |
| 181 | steps = get_steps('job-test-add-step') |
| 182 | |
| 183 | assert steps[0].get('args') == args_1 |
| 184 | assert steps[1].get('args') == args_2 |
| 185 | assert count_step_total('job-test-add-step') == 2 |
| 186 | |
| 187 | |
| 188 | def test_remix_step() -> None: |
nothing calls this directly
no test coverage detected