refactor state manager (#1237)

* refactor state manager

* refactor state manager

* refactor state manager

* refactor state manager
This commit is contained in:
Henry Ruhs
2026-09-12 11:02:14 +02:00
committed by GitHub
parent 864038b8f7
commit fb21d1d1b5
60 changed files with 285 additions and 80 deletions
+3 -1
View File
@@ -2,7 +2,7 @@
import pytest
from pytest import approx
from facefusion import ffmpeg, ffmpeg_builder, process_manager
from facefusion import ffmpeg, ffmpeg_builder, process_manager, state_manager
from facefusion.audio import detect_audio_duration, get_audio_frame, read_static_audio, restrict_trim_audio_frame
from facefusion.download import conditional_download
from .assert_helper import get_test_example_file, get_test_examples_directory
@@ -10,6 +10,8 @@ from .assert_helper import get_test_example_file, get_test_examples_directory
@pytest.fixture(scope = 'module', autouse = True)
def before_all() -> None:
state_manager.init()
process_manager.start()
conditional_download(get_test_examples_directory(),
[