mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-11 04:43:46 +02:00
Scope for Args (#988)
* Add API scopes * Add API scopes * Add API scopes * Add API scopes * Add API scopes * Add API scopes * Add API scopes * Add API scopes * Remove system memory limit (#986) * Add session_id, make token size more reasonable (#983) * Add session_id, make token size more reasonable * Use more direct approach * Fix more stuff * Fix ignore comments * Fix naming * Fix lint
This commit is contained in:
@@ -3,12 +3,13 @@ from typing import Iterator
|
||||
import pytest
|
||||
from starlette.testclient import TestClient
|
||||
|
||||
from facefusion import metadata, session_manager, state_manager
|
||||
from facefusion import args_store, metadata, session_manager, state_manager
|
||||
from facefusion.apis.core import create_api
|
||||
|
||||
|
||||
@pytest.fixture(scope = 'module')
|
||||
def test_client() -> Iterator[TestClient]:
|
||||
args_store.register_args([ 'execution_providers' ], scopes = [ 'api' ])
|
||||
state_manager.init_item('execution_providers', [ 'cpu' ])
|
||||
|
||||
with TestClient(create_api()) as test_client:
|
||||
|
||||
Reference in New Issue
Block a user