From 66b48bc46f616e712b8a0bc486690126c4acd689 Mon Sep 17 00:00:00 2001 From: cszsolnai Date: Wed, 20 Nov 2024 13:22:56 +0100 Subject: [PATCH] Fixed settings test --- swarm_copy_tests/app/test_main.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/swarm_copy_tests/app/test_main.py b/swarm_copy_tests/app/test_main.py index 54f3def..2af6526 100644 --- a/swarm_copy_tests/app/test_main.py +++ b/swarm_copy_tests/app/test_main.py @@ -1,9 +1,4 @@ -from swarm_copy.app.dependencies import get_settings -from swarm_copy.app.main import app - - -def test_settings_endpoint(app_client, dont_look_at_env_file): - settings = app.dependency_overrides[get_settings]() +def test_settings_endpoint(app_client, dont_look_at_env_file, settings): response = app_client.get("/settings") replace_secretstr = settings.model_dump()