(rasa_app: SanicASGITestClient, nlu_data_path: Text)
| 733 | |
| 734 | |
| 735 | async def test_evaluate_intent(rasa_app: SanicASGITestClient, nlu_data_path: Text): |
| 736 | nlu_data = rasa.shared.utils.io.read_file(nlu_data_path) |
| 737 | |
| 738 | _, response = await rasa_app.post( |
| 739 | "/model/test/intents", |
| 740 | data=nlu_data, |
| 741 | headers={"Content-type": rasa.server.YAML_CONTENT_TYPE}, |
| 742 | ) |
| 743 | |
| 744 | assert response.status == HTTPStatus.OK |
| 745 | assert set(response.json.keys()) == { |
| 746 | "intent_evaluation", |
| 747 | "entity_evaluation", |
| 748 | "response_selection_evaluation", |
| 749 | } |
| 750 | |
| 751 | |
| 752 | async def test_evaluate_invalid_intent_model_file(rasa_app: SanicASGITestClient): |
nothing calls this directly
no test coverage detected
searching dependent graphs…