87826c4ccb971911752adbc4bdac8d3e7c28989e,tests/test_interactive.py,,test_request_prediction,#Any#Any#,37
Before Change
interactive.request_prediction(mock_endpoint, sender_id))
httpretty.disable()
b = httpretty.latest_requests[-1].body.decode("utf-8")
assert b == ""
def test_bot_output_format():
After Change
url = "{}/conversations/{}/predict".format(
mock_endpoint.url, sender_id)
with aioresponses() as mocked:
mocked.post(url, payload={})
loop.run_until_complete(
interactive.request_prediction(mock_endpoint, sender_id))
assert latest_request(mocked, "post", url) is not None
def test_bot_output_format():
message = {
"text": "Hello!",
"data": {
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: RasaHQ/rasa
Commit Name: 87826c4ccb971911752adbc4bdac8d3e7c28989e
Time: 2019-01-21
Author: tom@rasa.com
File Name: tests/test_interactive.py
Class Name:
Method Name: test_request_prediction
Project Name: RasaHQ/rasa
Commit Name: 87826c4ccb971911752adbc4bdac8d3e7c28989e
Time: 2019-01-21
Author: tom@rasa.com
File Name: tests/test_actions.py
Class Name:
Method Name: test_remote_action_runs
Project Name: RasaHQ/rasa
Commit Name: 87826c4ccb971911752adbc4bdac8d3e7c28989e
Time: 2019-01-21
Author: tom@rasa.com
File Name: tests/test_interactive.py
Class Name:
Method Name: test_send_message