From 7c625d73d0340f6377952ffd750a4309a4563481 Mon Sep 17 00:00:00 2001 From: tarepan Date: Tue, 9 Apr 2024 04:11:25 +0900 Subject: [PATCH] =?UTF-8?q?=E5=BB=83=E6=AD=A2:=20fixture=20=E3=82=BB?= =?UTF-8?q?=E3=83=83=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=B9=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=97=E3=82=92=E5=89=8A=E9=99=A4=E3=81=97=E3=81=A6=E5=BB=83?= =?UTF-8?q?=E6=AD=A2=20(#1154)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove: fixture セッションスコープを廃止 --- test/e2e/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/conftest.py b/test/e2e/conftest.py index 61e6b9315..ac6e0bb9d 100644 --- a/test/e2e/conftest.py +++ b/test/e2e/conftest.py @@ -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) @@ -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)