MCPcopy
hub / github.com/rspeer/python-ftfy / get_command_output

Function get_command_output

tests/test_cli.py:25–28  ·  view source on GitHub ↗
(args, stdin=None)

Source from the content-addressed store, hash-verified

23
24
25def get_command_output(args, stdin=None):
26 return subprocess.check_output(args, stdin=stdin, stderr=subprocess.STDOUT, timeout=5).decode(
27 "utf-8"
28 )
29
30
31def test_basic():

Callers 6

test_basicFunction · 0.85
test_guess_bytesFunction · 0.85
test_alternate_encodingFunction · 0.85
test_wrong_encodingFunction · 0.85
test_same_fileFunction · 0.85
test_stdinFunction · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected