MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / fake_run

Function fake_run

tests/test_local_shell_component.py:32–34  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

30
31def test_local_shell_component_decodes_utf8_output(monkeypatch):
32 def fake_run(*args, **kwargs):
33 _ = args, kwargs
34 return _FakePopen(stdout="技能内容".encode())
35
36 monkeypatch.setattr(subprocess, "Popen", fake_run)
37

Callers

nothing calls this directly

Calls 2

_FakePopenClass · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected