tmux-amq/tests/test_makefile.py

22 lines
657 B
Python
Raw Normal View History

import subprocess
from pathlib import Path
def test_plain_make_lists_available_targets():
project = Path(__file__).resolve().parents[1]
result = subprocess.run(
["make", "--no-print-directory"],
cwd=project,
text=True,
capture_output=True,
check=True,
)
assert result.stdout.splitlines() == [
" help List available targets",
" install Install or refresh tamq as a user-level uv tool",
" uninstall Uninstall the user-level tamq tool",
" test Run the test suite",
" check Run tests and repository consistency checks",
]