8185e4bd0495e30a4d5fd6a4f5f3f0ae421dcfa9,tests/test_server.py,,test_pushing_event,#Any#Any#,105

Before Change


    data = json.dumps(event.as_dict())
    response = app.post("{}/tracker/events".format(conversation),
                        data=data, content_type="application/json")
    content = response.get_json()
    assert response.status_code == 200

    tracker_response = app.get("http://dummy/conversations/{}/tracker"
                               "".format(cid))

After Change


    data = json.dumps(event.as_dict())
    _, response = app.post("{}/tracker/events".format(conversation),
                           data=data,
                           headers={"Content-Type": "application/json"})
    assert (response.json is not None)
    assert response.status == 200
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: RasaHQ/rasa
Commit Name: 8185e4bd0495e30a4d5fd6a4f5f3f0ae421dcfa9
Time: 2018-12-18
Author: tom@rasa.com
File Name: tests/test_server.py
Class Name:
Method Name: test_pushing_event


Project Name: RasaHQ/rasa
Commit Name: 8185e4bd0495e30a4d5fd6a4f5f3f0ae421dcfa9
Time: 2018-12-18
Author: tom@rasa.com
File Name: tests/test_server.py
Class Name:
Method Name: test_put_tracker


Project Name: RasaHQ/rasa
Commit Name: 8185e4bd0495e30a4d5fd6a4f5f3f0ae421dcfa9
Time: 2018-12-18
Author: tom@rasa.com
File Name: tests/test_server.py
Class Name:
Method Name: test_respond


Project Name: RasaHQ/rasa
Commit Name: 8185e4bd0495e30a4d5fd6a4f5f3f0ae421dcfa9
Time: 2018-12-18
Author: tom@rasa.com
File Name: tests/test_server.py
Class Name:
Method Name: test_list_conversations