Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Add text attribute to command model (#9)
Browse files Browse the repository at this point in the history
* Add 'text' to tests

* Add command back
  • Loading branch information
kylecrawshaw committed Mar 6, 2020
1 parent 126b4bb commit f04c07f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/slackers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ class SlackCommand(SlackBase):
user_name: str
team_id: str
channel_id: str
text: str
1 change: 1 addition & 0 deletions tests/slash_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def on_foo(payload):
"user_name": "USER_NAME",
"team_id": "TEAM_ID",
"channel_id": "CHANNEL_ID",
"text": "hello from slack"
}

response = client.post(url="/commands", data=command, headers=test_headers)
Expand Down

0 comments on commit f04c07f

Please sign in to comment.