Files
facefusion/tests/test_library_opus.py
T
Henry Ruhs fb21d1d1b5 refactor state manager (#1237)
* refactor state manager

* refactor state manager

* refactor state manager

* refactor state manager
2026-09-12 11:02:14 +02:00

25 lines
576 B
Python

import ctypes
import pytest
from facefusion import state_manager
from facefusion.libraries import opus as opus_module
@pytest.fixture(scope = 'module', autouse = True)
def before_all() -> None:
state_manager.init()
state_manager.init_item('download_providers', [ 'github', 'huggingface' ])
opus_module.pre_check()
def test_create_static_library() -> None:
assert isinstance(opus_module.create_static_library(), ctypes.CDLL)
def test_create_opus_encoder() -> None:
opus_library = opus_module.create_static_library()
assert isinstance(opus_library, ctypes.CDLL)