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

Function test_no_inputs

tests/engine/runner/test_dask.py:127–146  ·  view source on GitHub ↗
(default_model_storage: ModelStorage)

Source from the content-addressed store, hash-verified

125
126
127def test_no_inputs(default_model_storage: ModelStorage):
128 graph_schema = GraphSchema(
129 {
130 "provide": SchemaNode(
131 needs={},
132 uses=ProvideX,
133 fn="provide",
134 constructor_name="create",
135 config={},
136 is_target=True,
137 )
138 }
139 )
140 runner = DaskGraphRunner(
141 graph_schema=graph_schema,
142 model_storage=default_model_storage,
143 execution_context=ExecutionContext(graph_schema=graph_schema, model_id="1"),
144 )
145 results = runner.run()
146 assert results["provide"] == 1
147
148
149def test_no_target(default_model_storage: ModelStorage):

Callers

nothing calls this directly

Calls 5

runMethod · 0.95
GraphSchemaClass · 0.90
SchemaNodeClass · 0.90
DaskGraphRunnerClass · 0.90
ExecutionContextClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…