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

Function test_evaluate_intent_on_just_nlu_model

tests/test_server.py:770–786  ·  view source on GitHub ↗
(
    rasa_app_nlu: SanicASGITestClient, nlu_data_path: Text
)

Source from the content-addressed store, hash-verified

768
769
770async 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
789async def test_evaluate_intent_with_model_param(

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…