1 2 3 4 5 6 7 8 9 10 11 12
import pytest import shutil import subprocess def promtool_available() -> bool: return shutil.which('promtool') is not None def call(cmd): completion = subprocess.run(cmd.split(), stdout=subprocess.PIPE) return completion