MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / testAction

Function testAction

src/Test/conftest.py:338–340  ·  view source on GitHub ↗
(action, *args, **kwargs)

Source from the content-addressed store, hash-verified

336 ui_websocket = UiWebsocket(ws_mock, site, None, user, None)
337
338 def testAction(action, *args, **kwargs):
339 ui_websocket.handleRequest({"id": 0, "cmd": action, "params": list(args) if args else kwargs})
340 return ui_websocket.ws.getResult()
341
342 ui_websocket.testAction = testAction
343 return ui_websocket

Callers

nothing calls this directly

Calls 2

getResultMethod · 0.80
handleRequestMethod · 0.45

Tested by

no test coverage detected