MCPcopy
hub / github.com/facefusion/facefusion / test_run_jobs

Function test_run_jobs

tests/test_job_runner.py:69–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68
69def 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
106def test_retry_job() -> None:

Callers

nothing calls this directly

Calls 6

run_jobsFunction · 0.90
create_jobFunction · 0.90
add_stepFunction · 0.90
submit_jobsFunction · 0.90
get_test_example_fileFunction · 0.85
get_test_output_fileFunction · 0.85

Tested by

no test coverage detected