(command, check=1, stdout=None)
| 287 | in_path = f'{root}/tests/resources/test_3493.epub' |
| 288 | |
| 289 | def run(command, check=1, stdout=None): |
| 290 | print(f'Running with {check=}: {command}') |
| 291 | return subprocess.run(command, shell=1, check=check, stdout=stdout, text=1) |
| 292 | |
| 293 | def run_code(code, code_path, *, check=True, venv=None, venv_args='', pythonpath=None, stdout=None): |
| 294 | code = textwrap.dedent(code) |