3.0.0 Gold (#787)
* Replace audio whenever set via source * use scale_face_landmark_5() in age_modifier * Fix wording and ordering of options * Adjust wording for face editor * Fix wording for processors * Switch order of frame colorizer options * That condition is actual not needed * Simplify UI layout API by removing pre_render() * Clean args and safe cast ini values (#775) * Clean args and safe cast ini values * Clean args and safe cast ini values * Clean args and safe cast ini values * Introduce paths group * Fix job list command and change order * Add job list testing todo * Fix spacing in typing * Fix benchmark by ignoring audio * Simplify and avoid knowing the provider values (#782) * Fix logger table with empty value * Complete Typing --------- Co-authored-by: harisreedhar <h4harisreedhar.s.s@gmail.com>
This commit is contained in:
@@ -24,6 +24,11 @@ def before_each() -> None:
|
||||
init_jobs(get_test_jobs_directory())
|
||||
|
||||
|
||||
@pytest.mark.skip()
|
||||
def test_job_list() -> None:
|
||||
pass
|
||||
|
||||
|
||||
def test_job_create() -> None:
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-create', 'test-job-create', '-j', get_test_jobs_directory() ]
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ def test_has_execution_provider() -> None:
|
||||
|
||||
|
||||
def test_multiple_execution_providers() -> None:
|
||||
execution_provider_with_options =\
|
||||
execution_providers =\
|
||||
[
|
||||
('CUDAExecutionProvider',
|
||||
{
|
||||
@@ -21,4 +21,4 @@ def test_multiple_execution_providers() -> None:
|
||||
'CPUExecutionProvider'
|
||||
]
|
||||
|
||||
assert create_execution_providers('1', [ 'cpu', 'cuda' ]) == execution_provider_with_options
|
||||
assert create_execution_providers('1', [ 'cpu', 'cuda' ]) == execution_providers
|
||||
|
||||
@@ -2,7 +2,7 @@ from argparse import ArgumentParser
|
||||
|
||||
import pytest
|
||||
|
||||
from facefusion.program_helper import find_argument_group, validate_actions
|
||||
from facefusion.program_helper import find_argument_group, remove_args, validate_actions
|
||||
|
||||
|
||||
def test_find_argument_group() -> None:
|
||||
@@ -38,3 +38,23 @@ def test_validate_actions() -> None:
|
||||
action.default = args[action.dest]
|
||||
|
||||
assert validate_actions(program) is False
|
||||
|
||||
|
||||
def test_remove_args() -> None:
|
||||
program = ArgumentParser()
|
||||
program.add_argument('--test-1')
|
||||
program.add_argument('--test-2')
|
||||
program.add_argument('--test-3')
|
||||
|
||||
actions = [ action.dest for action in program._actions ]
|
||||
|
||||
assert 'test_1' in actions
|
||||
assert 'test_2' in actions
|
||||
assert 'test_3' in actions
|
||||
|
||||
program = remove_args(program, [ 'test_1', 'test_2' ])
|
||||
actions = [ action.dest for action in program._actions ]
|
||||
|
||||
assert 'test_1' not in actions
|
||||
assert 'test_2' not in actions
|
||||
assert 'test_3' in actions
|
||||
|
||||
Reference in New Issue
Block a user