First set for extract_frames()
This commit is contained in:
@@ -6,7 +6,7 @@ from facefusion.utilities import conditional_download
|
||||
|
||||
|
||||
@pytest.fixture(scope = 'module', autouse = True)
|
||||
def setup() -> None:
|
||||
def before_all() -> None:
|
||||
conditional_download('.assets/examples',
|
||||
[
|
||||
'https://github.com/facefusion/facefusion-assets/releases/download/examples/source.jpg',
|
||||
@@ -18,6 +18,7 @@ def setup() -> None:
|
||||
def test_image_to_image() -> None:
|
||||
commands = [ 'python', 'run.py', '-s', '.assets/examples/source.jpg', '-t', '.assets/examples/target-1080p.jpg', '-o', '.assets/examples' ]
|
||||
run = subprocess.run(commands, stdout = subprocess.PIPE)
|
||||
|
||||
assert run.returncode == 0
|
||||
assert wording.get('processing_image_succeed') in run.stdout.decode()
|
||||
|
||||
@@ -25,5 +26,6 @@ def test_image_to_image() -> None:
|
||||
def test_image_to_video() -> None:
|
||||
commands = [ 'python', 'run.py', '-s', '.assets/examples/source.jpg', '-t', '.assets/examples/target-1080p.mp4', '-o', '.assets/examples', '--trim-frame-end', '10' ]
|
||||
run = subprocess.run(commands, stdout = subprocess.PIPE)
|
||||
|
||||
assert run.returncode == 0
|
||||
assert wording.get('processing_video_succeed') in run.stdout.decode()
|
||||
|
||||
Reference in New Issue
Block a user