(self)
| 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({}) |
nothing calls this directly
no test coverage detected