File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313from app .core .factory import create_app
1414from app .resource_adapters .persistence .sqlmodel .database import get_engine
1515from app .resource_adapters .persistence .sqlmodel .issues import Issue
16- from config import Settings
16+ from config import Settings , get_settings
1717
1818# Specify the custom .env file
1919dotenv_path = Path (".env.testing" )
2020load_dotenv (dotenv_path = dotenv_path , override = True )
2121
2222
23- settings = Settings ()
23+ settings = get_settings ()
2424
2525
2626def pytest_unconfigure (config : Config ) -> None :
Original file line number Diff line number Diff line change 33
44from main import app
55
6+ from .conftest import settings
7+
68
79@pytest .fixture (name = "client" )
810def client_fixture ():
@@ -56,5 +58,5 @@ def test_is_configured():
5658 from main import is_configured
5759
5860 assert (
59- is_configured () is True
61+ is_configured (settings ) is True
6062 ) # Should be True since project_name is set to "python-template"
You can’t perform that action at this time.
0 commit comments