Skip to content

Commit

Permalink
廃止: fixture セッションスコープを削除して廃止 (#1154)
Browse files Browse the repository at this point in the history
remove: fixture セッションスコープを廃止
  • Loading branch information
tarepan authored Apr 8, 2024
1 parent a4749af commit 7c625d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from voicevox_engine.utility.core_version_utility import get_latest_core_version


@pytest.fixture(scope="session")
@pytest.fixture()
def app_params() -> dict[str, Any]:
cores = initialize_cores(use_gpu=False, enable_mock=True)
tts_engines = make_tts_engines_from_cores(cores)
Expand All @@ -31,11 +31,11 @@ def app_params() -> dict[str, Any]:
}


@pytest.fixture(scope="session")
@pytest.fixture()
def app(app_params: dict) -> FastAPI:
return generate_app(**app_params)


@pytest.fixture(scope="session")
@pytest.fixture()
def client(app: FastAPI) -> TestClient:
return TestClient(app)

0 comments on commit 7c625d7

Please sign in to comment.