Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
- added additional test case for the UserMessage class
Browse files Browse the repository at this point in the history
- removed unused import of `Thread`
  • Loading branch information
wochinge committed Oct 18, 2018
1 parent 113b0cc commit 6a4dc60
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import json

from httpretty import httpretty
from threading import Thread

from rasa_core import utils
from rasa_core.utils import EndpointConfig
Expand Down Expand Up @@ -647,3 +646,11 @@ def test_channel_inheritance():
s = agent.handle_channels([RestInput(), rasa_input], 5004,
serve_forever=False)
assert s.started


def test_int_sender_id_in_user_message():
from rasa_core.channels import UserMessage

message = UserMessage("A text", sender_id=1234567890)

assert message.sender_id == "1234567890"

0 comments on commit 6a4dc60

Please sign in to comment.