(
rasa_app_nlu: SanicASGITestClient, nlu_data_path: Text
)
| 768 | |
| 769 | |
| 770 | async def test_evaluate_intent_on_just_nlu_model( |
| 771 | rasa_app_nlu: SanicASGITestClient, nlu_data_path: Text |
| 772 | ): |
| 773 | nlu_data = rasa.shared.utils.io.read_file(nlu_data_path) |
| 774 | |
| 775 | _, response = await rasa_app_nlu.post( |
| 776 | "/model/test/intents", |
| 777 | data=nlu_data, |
| 778 | headers={"Content-type": rasa.server.YAML_CONTENT_TYPE}, |
| 779 | ) |
| 780 | |
| 781 | assert response.status == HTTPStatus.OK |
| 782 | assert set(response.json.keys()) == { |
| 783 | "intent_evaluation", |
| 784 | "entity_evaluation", |
| 785 | "response_selection_evaluation", |
| 786 | } |
| 787 | |
| 788 | |
| 789 | async def test_evaluate_intent_with_model_param( |
nothing calls this directly
no test coverage detected
searching dependent graphs…