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
1 change: 1 addition & 0 deletions src/core/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from slack_sdk.web.async_client import AsyncWebClient
from slack_sdk.web.slack_response import SlackResponse
from slack_sdk.errors import SlackApiError

from config import SLACK_API_TOKEN, SLACK_JUMPSTART_MESSAGE, SLACK_DM_TEMPLATE

Expand Down
3 changes: 0 additions & 3 deletions src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ icalendar==7.0.3
recurring-ical-events==3.8.1
arrow==1.4.0

# For Wikithoughts
httpx==0.28.1

# For the docker to run
uvicorn==0.41.0
pyyaml==6.0.3
7 changes: 7 additions & 0 deletions tests/src/core/test_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ def test_request_upload_via_dm_success_and_exception(monkeypatch):
recorded = {}

class FakeClient:
async def conversations_open(self, *, users):
return {
"ok": True,
"channel": {
"id": "FAKE_CHANNEL"
}
}
async def chat_postMessage(self, *, channel, text, blocks):
recorded["channel"] = channel
recorded["text"] = text
Expand Down
Loading