MCPcopy
hub / github.com/facefusion/facefusion / test_submit_jobs

Function test_submit_jobs

tests/test_job_manager.py:53–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_submit_jobs() -> None:
54 args_1 =\
55 {
56 'source_path': 'source-1.jpg',
57 'target_path': 'target-1.jpg',
58 'output_path': 'output-1.jpg'
59 }
60 args_2 =\
61 {
62 'source_path': 'source-2.jpg',
63 'target_path': 'target-2.jpg',
64 'output_path': 'output-2.jpg'
65 }
66 halt_on_error = True
67
68 assert submit_jobs(halt_on_error) is False
69
70 create_job('job-test-submit-jobs-1')
71 create_job('job-test-submit-jobs-2')
72
73 assert submit_jobs(halt_on_error) is False
74
75 add_step('job-test-submit-jobs-1', args_1)
76 add_step('job-test-submit-jobs-2', args_2)
77
78 assert submit_jobs(halt_on_error) is True
79 assert submit_jobs(halt_on_error) is False
80
81
82def test_delete_job() -> None:

Callers

nothing calls this directly

Calls 3

submit_jobsFunction · 0.90
create_jobFunction · 0.90
add_stepFunction · 0.90

Tested by

no test coverage detected