MCPcopy
hub / github.com/facefusion/facefusion / test_add_step

Function test_add_step

tests/test_job_manager.py:160–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159
160def 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
188def test_remix_step() -> None:

Callers

nothing calls this directly

Calls 4

add_stepFunction · 0.90
create_jobFunction · 0.90
get_stepsFunction · 0.90
count_step_totalFunction · 0.90

Tested by

no test coverage detected