(self, *args, input_text="")
| 10 | |
| 11 | class 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: |
no test coverage detected