Skip to content

Commit 5f06e9d

Browse files
committed
fix(ci): fix test run errors
-added correct webhook url for telex to config
1 parent b5dd8be commit 5f06e9d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
2525
- name: run tests
2626
run: |
27-
pytest -s
27+
pytest

src/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Settings(BaseSettings):
88
host: str = "127.0.0.1"
99
port: int = 8000
1010
reload_value: str = "true"
11-
telex_webhook_url: str = "https://example.com/telex"
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`
1313
app_logo_url: str = "https://example.com/logo.png"
1414
app_url: str = "https://example.com"

tests/test_github.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ def test_send_to_telex_success():
1818
],
1919
},
2020
)
21-
# assert response.status_code == 200
21+
assert response.status_code == 200
2222
response_data = json.loads(response.content.decode())
23-
print(response_data)
24-
# assert response_data["data"]["status"] == "success"
25-
# assert response_data["data"]["status_code"] == 202
23+
assert response_data["data"]["status"] == "success"
24+
assert response_data["data"]["status_code"] == 202
2625

2726

2827
def test_send_to_telex_failure():

0 commit comments

Comments
 (0)