Some checks failed
tamq-ci / test (push) Failing after 6s
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
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",
|
|
" cleanup Stop tamq and remove tamq-owned runtime files (preserves history)",
|
|
" test Run the test suite",
|
|
" check Run tests and repository consistency checks",
|
|
]
|
|
|
|
|
|
def test_cleanup_target_requires_confirmed_tamq_cleanup_without_running_it():
|
|
project = Path(__file__).resolve().parents[1]
|
|
result = subprocess.run(
|
|
["make", "--no-print-directory", "-n", "cleanup"],
|
|
cwd=project,
|
|
text=True,
|
|
capture_output=True,
|
|
check=True,
|
|
)
|
|
|
|
assert result.stdout.strip() == "uv run tamq cleanup --yes"
|