MCPcopy
hub / github.com/facefusion/facefusion / test_retry_job

Function test_retry_job

tests/test_job_runner.py:106–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105
106def test_retry_job() -> None:
107 args_1 =\
108 {
109 'source_path': get_test_example_file('source.jpg'),
110 'target_path': get_test_example_file('target-240p.mp4'),
111 'output_path': get_test_output_file('output-1.mp4')
112 }
113
114 assert retry_job('job-invalid', process_step) is False
115
116 create_job('job-test-retry-job')
117 add_step('job-test-retry-job', args_1)
118 submit_job('job-test-retry-job')
119
120 assert retry_job('job-test-retry-job', process_step) is False
121
122 move_job_file('job-test-retry-job', 'failed')
123
124 assert retry_job('job-test-retry-job', process_step) is True
125
126
127def test_retry_jobs() -> None:

Callers

nothing calls this directly

Calls 7

retry_jobFunction · 0.90
create_jobFunction · 0.90
add_stepFunction · 0.90
submit_jobFunction · 0.90
move_job_fileFunction · 0.90
get_test_example_fileFunction · 0.85
get_test_output_fileFunction · 0.85

Tested by

no test coverage detected