Refactor database connection to use settings and improve test isolation with temporary DB

This commit is contained in:
2026-03-02 16:18:02 +02:00
parent 9dfa1da619
commit 27bc736981
5 changed files with 32 additions and 22 deletions
+7
View File
@@ -0,0 +1,7 @@
# app/settings.py
import os
# Example configuration
database_url = os.getenv("DATABASE_URL", "sqlite:///default.db")
debug = os.getenv("DEBUG", "True") == "True"