BuyingAgent/backend/tests/unit/test_settings.py
Lars b276758ee1
All checks were successful
Deploy Development / deploy (push) Successful in 1m19s
Test Suite / pytest-backend (push) Successful in 31s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-checks (push) Successful in 28s
Stelle den Frontend-MVP und die v0.3-API auf develop bereit, damit Dev API und PWA zusammen deployen.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 13:04:59 +02:00

15 lines
405 B
Python

from app.settings import Settings
def test_database_url_uses_psycopg_and_explicit_fields() -> None:
settings = Settings(
db_host="postgres",
db_port=5432,
db_name="buyingagent_test",
db_user="buyingagent",
db_password="secret",
)
assert settings.database_url == (
"postgresql+psycopg://buyingagent:secret@postgres:5432/buyingagent_test"
)