MCPcopy
hub / github.com/RasaHQ/rasa / test_evaluate_intent

Function test_evaluate_intent

tests/test_server.py:735–749  ·  view source on GitHub ↗
(rasa_app: SanicASGITestClient, nlu_data_path: Text)

Source from the content-addressed store, hash-verified

733
734
735async 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
752async def test_evaluate_invalid_intent_model_file(rasa_app: SanicASGITestClient):

Callers

nothing calls this directly

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…