MCPcopy Index your code
hub / github.com/geekcomputers/Python / run_cat

Method run_cat

Cat/test_cat.py:12–19  ·  view source on GitHub ↗
(self, *args, input_text="")

Source from the content-addressed store, hash-verified

10
11class CatProgramTests(unittest.TestCase):
12 def run_cat(self, *args, input_text=""):
13 return subprocess.run(
14 [sys.executable, str(CAT_SCRIPT), *map(str, args)],
15 input=input_text,
16 capture_output=True,
17 text=True,
18 check=False,
19 )
20
21 def test_reads_single_file(self):
22 with tempfile.TemporaryDirectory() as temp_dir:

Calls 1

runMethod · 0.45

Tested by

no test coverage detected