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:
Henry Ruhs
2025-11-24 11:58:35 +01:00
committed by henryruhs
parent 9664bb98db
commit b333280b8d
20 changed files with 189 additions and 304 deletions
+2 -1
View File
@@ -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: