Skip to content

Commit

Permalink
more tests for send_msg action (quick replies, attachments)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoo89 committed Oct 11, 2022
1 parent c298650 commit 46c9df2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rapidpro/tests/data/actions/send_msg_with_attachments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "send_msg",
"uuid": "8eebd020-1af5-431c-b943-aa670fc74da9",
"text": "Hi @contact.name, are you ready to complete today's survey?",
"templating": {
"uuid": "32c2ead6-3fa3-4402-8e27-9cc718175c5a",
"template": {
"uuid": "3ce100b7-a734-4b4e-891b-350b1279ade2",
"name": "revive_issue"
},
"variables": [
"@contact.name"
]
},
"topic": "event",
"attachments": [
"image:image url",
"audio:audio url"
],
"quick_replies": []
}
21 changes: 21 additions & 0 deletions rapidpro/tests/data/actions/send_msg_with_quick_replies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "send_msg",
"uuid": "8eebd020-1af5-431c-b943-aa670fc74da9",
"text": "Hi @contact.name, are you ready to complete today's survey?",
"templating": {
"uuid": "32c2ead6-3fa3-4402-8e27-9cc718175c5a",
"template": {
"uuid": "3ce100b7-a734-4b4e-891b-350b1279ade2",
"name": "revive_issue"
},
"variables": [
"@contact.name"
]
},
"topic": "event",
"attachments": [],
"quick_replies": [
"qr1",
"qr2"
]
}

0 comments on commit 46c9df2

Please sign in to comment.