Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
8 changes: 7 additions & 1 deletion tests/test_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
}
],
},
)
Expand Down