Skip to content

Commit 0282b96

Browse files
authored
Merge pull request #20 from telexintegrations/ci/cd
fix(ci): fix attempt at installation errors
2 parents 5a66b9e + 5f06e9d commit 0282b96

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

src/config/config.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44

55
class Settings(BaseSettings):
6-
allowed_origins: str
7-
allowed_hosts: str
8-
host: str
9-
port: int
10-
reload_value: str
11-
telex_webhook_url: str
6+
allowed_origins: str = "http://test"
7+
allowed_hosts: str = "test"
8+
host: str = "127.0.0.1"
9+
port: int = 8000
10+
reload_value: str = "true"
11+
telex_webhook_url: str = "https://ping.telex.im/v1/webhooks"
1212
curl_command: str | None = "curl" # might require path/to/curl e.g. `/usr/bin/curl`
13-
app_logo_url: str
14-
app_url: str
15-
target_url: str
16-
background_color_hexcode: str
13+
app_logo_url: str = "https://example.com/logo.png"
14+
app_url: str = "https://example.com"
15+
target_url: str = "https://example.com/target"
16+
background_color_hexcode: str = "#FFFFFF"
1717

1818
model_config = SettingsConfigDict(env_file=".env")
1919

tests/test_github.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ def test_send_to_telex_success():
88
json={
99
"pusher": {"name": "test"},
1010
"commits": [
11-
{"key": "value"},
11+
{
12+
"id": "commit_hash",
13+
"message": "commit_message",
14+
"timestamp": "2025-02-18T10:17:54+01:00",
15+
"url": "commit_url",
16+
"author": {"name": "author_name", "email": "author_email"}
17+
}
1218
],
1319
},
1420
)

0 commit comments

Comments
 (0)