MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / fake_run

Function fake_run

tests/test_feishu_reporter.py:16–22  ·  view source on GitHub ↗
(args, **kwargs)

Source from the content-addressed store, hash-verified

14 captured = {}
15
16 def fake_run(args, **kwargs):
17 captured["args"] = args
18 return SimpleNamespace(
19 stdout=json.dumps({"code": 0, "data": {"message_id": "om_test"}}),
20 stderr="",
21 returncode=0,
22 )
23
24 monkeypatch.setattr(feishu_reporter, "FEISHU_CLI_CMD", "lark-cli")
25 monkeypatch.setattr(feishu_reporter, "DEFAULT_IM_IDENTITY", "user")

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected