From c1d9ea46dbc5ef7a28ac7c104e4c6bc02f516cc8 Mon Sep 17 00:00:00 2001 From: Ricardo Garcia Silva Date: Mon, 6 May 2024 17:00:37 +0100 Subject: [PATCH] fixing tests --- tests/conftest.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 63f54523..947300d1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -45,11 +45,7 @@ def settings() -> config.ArpavPpcvSettings: @pytest.fixture def app(settings): - app = create_app_from_settings(settings) - app.dependency_overrides[dependencies.get_db_session] = _override_get_db_session - app.dependency_overrides[dependencies.get_db_engine] = _override_get_db_engine - app.dependency_overrides[dependencies.get_settings] = _override_get_settings - yield app + yield create_app_from_settings(settings) @pytest.fixture