diff --git a/src/config/config.py b/src/config/config.py index 410dbc1..6b83ab0 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -3,17 +3,17 @@ class Settings(BaseSettings): - allowed_origins: str - allowed_hosts: str - host: str - port: int - reload_value: str - telex_webhook_url: str + allowed_origins: str = "http://test" + allowed_hosts: str = "test" + host: str = "127.0.0.1" + port: int = 8000 + reload_value: str = "true" + telex_webhook_url: str = "https://ping.telex.im/v1/webhooks" curl_command: str | None = "curl" # might require path/to/curl e.g. `/usr/bin/curl` - app_logo_url: str - app_url: str - target_url: str - background_color_hexcode: str + app_logo_url: str = "https://example.com/logo.png" + app_url: str = "https://example.com" + target_url: str = "https://example.com/target" + background_color_hexcode: str = "#FFFFFF" model_config = SettingsConfigDict(env_file=".env") diff --git a/tests/test_github.py b/tests/test_github.py index da1cceb..9374157 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -8,7 +8,13 @@ def test_send_to_telex_success(): json={ "pusher": {"name": "test"}, "commits": [ - {"key": "value"}, + { + "id": "commit_hash", + "message": "commit_message", + "timestamp": "2025-02-18T10:17:54+01:00", + "url": "commit_url", + "author": {"name": "author_name", "email": "author_email"} + } ], }, )