MCPcopy
hub / github.com/facefusion/facefusion / test_run_job

Function test_run_job

tests/test_job_runner.py:34–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def 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
69def test_run_jobs() -> None:

Callers

nothing calls this directly

Calls 6

run_jobFunction · 0.90
create_jobFunction · 0.90
add_stepFunction · 0.90
submit_jobFunction · 0.90
get_test_example_fileFunction · 0.85
get_test_output_fileFunction · 0.85

Tested by

no test coverage detected