diff --git a/src/config/config.py b/src/config/config.py index 7df8dd5..6b83ab0 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -8,7 +8,7 @@ class Settings(BaseSettings): host: str = "127.0.0.1" port: int = 8000 reload_value: str = "true" - telex_webhook_url: str = "https://example.com/telex" + 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 = "https://example.com/logo.png" app_url: str = "https://example.com" 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"} + } ], }, )