MCPcopy Create free account
hub / github.com/Lap-Platform/LAP / test_list_params

Method test_list_params

tests/test_toollean.py:343–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341 assert spec.outputs[0].name == "result"
342
343 def test_list_params(self):
344 tool = {
345 "name": "t",
346 "parameters": [
347 {"name": "x", "type": "integer", "required": True},
348 {"name": "y", "type": "string", "required": False},
349 ],
350 }
351 spec = compile_generic_json(tool)
352 assert len(spec.inputs) == 2
353 assert spec.inputs[0].type == "int"
354 assert spec.inputs[1].required is False
355
356 def test_empty(self):
357 spec = compile_generic_json({})

Callers

nothing calls this directly

Calls 1

compile_generic_jsonFunction · 0.90

Tested by

no test coverage detected