MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / extract_mock_input

Function extract_mock_input

tests/autoalloc/mock/mock.py:215–223  ·  view source on GitHub ↗
(request: Request, cmd: str)

Source from the content-addressed store, hash-verified

213
214
215async def extract_mock_input(request: Request, cmd: str) -> CommandInput:
216 data = await request.json()
217 arguments = data["arguments"]
218 assert isinstance(arguments, list)
219 if len(arguments) > 0:
220 assert isinstance(arguments[0], str)
221 cwd = data["cwd"]
222 assert isinstance(cwd, str)
223 return CommandInput(command=cmd, arguments=arguments, cwd=cwd)

Callers 1

handle_requestMethod · 0.85

Calls 1

CommandInputClass · 0.85

Tested by

no test coverage detected