Source code for ewoksid22.tests.test_script
import subprocess
import pytest
from ..bin import program_path
[docs]
@pytest.mark.parametrize(
"program", ["id22sume", "id22sumalle", "id22sumepy", "gen_xdds_file", "zingit"]
)
def test_commands(program):
subprocess.run([program, "--help"], check=True)
[docs]
@pytest.mark.parametrize(
"program", ["id22sume", "id22sumalle", "gen_xdds_file", "zingit"]
)
def test_program_path(program):
with program_path(program) as path:
subprocess.run([path, "--help"], check=True)