utils/md_naming/tests/test_stale.py
Krzysztof kuhy Rudnicki a233268b66 md-naming: keep stale.py as no-op stub
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:03:47 +01:00

26 lines
633 B
Python

"""stale.py is a retired no-op; old workflow steps must keep passing."""
from __future__ import annotations
import subprocess
import sys
from pathlib import Path
from md_naming import stale
STALE = Path(__file__).resolve().parents[1] / "stale.py"
def test_stub_exits_zero_silently_with_any_args() -> None:
result = subprocess.run(
[sys.executable, str(STALE), "--days", "30", "junk", "--nope"],
capture_output=True,
text=True,
check=False,
)
assert (result.returncode, result.stdout, result.stderr) == (0, "", "")
def test_main_returns_zero() -> None:
assert stale.main() == 0