f6e27f76726c25d3fb8885c98c12ddea4ac7faa7,tests/base/test_server.py,,test_evaluate_invalid_project_error,#Any#Any#,190
Before Change
response = app.post("http://dummy-uri/evaluate",
json=rasa_default_train_data,
params={"project": "project123"})
time.sleep(3)
app.flush()
response = yield response
rjs = yield response.json()
assert response.code == 500, "The project cannot be found"
After Change
def test_evaluate_invalid_project_error(app, rasa_default_train_data):
_, response = app.post("/evaluate",
json=rasa_default_train_data,
params={"project": "project123"})
rjs = response.json
assert response.status == 500, "The project cannot be found"
assert "error" in rjs
assert rjs["error"] == "Project project123 could not be found"
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: RasaHQ/rasa
Commit Name: f6e27f76726c25d3fb8885c98c12ddea4ac7faa7
Time: 2019-02-10
Author: tom@rasa.com
File Name: tests/base/test_server.py
Class Name:
Method Name: test_evaluate_invalid_project_error
Project Name: RasaHQ/rasa
Commit Name: f6e27f76726c25d3fb8885c98c12ddea4ac7faa7
Time: 2019-02-10
Author: tom@rasa.com
File Name: tests/base/test_server.py
Class Name:
Method Name: test_evaluate_internal_error
Project Name: RasaHQ/rasa
Commit Name: f6e27f76726c25d3fb8885c98c12ddea4ac7faa7
Time: 2019-02-10
Author: tom@rasa.com
File Name: tests/base/test_server.py
Class Name:
Method Name: test_post_train_internal_error
Project Name: RasaHQ/rasa
Commit Name: f6e27f76726c25d3fb8885c98c12ddea4ac7faa7
Time: 2019-02-10
Author: tom@rasa.com
File Name: tests/base/test_server.py
Class Name:
Method Name: test_evaluate