MCPcopy Create free account
hub / github.com/StackStorm/st2 / _cast_params

Function _cast_params

st2common/st2common/util/param.py:65–72  ·  view source on GitHub ↗

It's just here to make tests happy

(rendered, parameter_schemas)

Source from the content-addressed store, hash-verified

63
64
65def _cast_params(rendered, parameter_schemas):
66 """
67 It's just here to make tests happy
68 """
69 casted_params = {}
70 for k, v in six.iteritems(rendered):
71 casted_params[k] = _cast(v, parameter_schemas[k] or {})
72 return casted_params
73
74
75def _cast(v, parameter_schema):

Callers

nothing calls this directly

Calls 1

_castFunction · 0.85

Tested by

no test coverage detected