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

Function test_sort

tests/utils/tensorflow/test_model_data.py:155–172  ·  view source on GitHub ↗
(model_data: RasaModelData)

Source from the content-addressed store, hash-verified

153
154
155def test_sort(model_data: RasaModelData):
156 assert list(model_data.data.keys()) == [
157 "text",
158 "action_text",
159 "dialogue",
160 "label",
161 "entities",
162 ]
163
164 model_data.sort()
165
166 assert list(model_data.data.keys()) == [
167 "action_text",
168 "dialogue",
169 "entities",
170 "label",
171 "text",
172 ]
173
174
175def test_update_key(model_data: RasaModelData):

Callers

nothing calls this directly

Calls 2

keysMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…