Make backend port configurable via .env and update related configurations

This commit is contained in:
2026-05-31 11:26:06 +08:00
parent 00ba4530bf
commit 75ba2e73d8
7 changed files with 29 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
from app.core.config import Settings
def test_settings_default_backend_port_is_8000():
settings = Settings(datamall_api_key="test-account-key")
assert settings.app_port == 8000
def test_settings_reads_backend_port_from_env_value():
settings = Settings(datamall_api_key="test-account-key", app_port=9010)
assert settings.app_port == 9010