mirror of
https://github.com/furyhawk/lta_datamall_api.git
synced 2026-07-21 10:16:52 +00:00
13 lines
358 B
Python
13 lines
358 B
Python
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 |