from pathlib import Path from mic_clipper.cli import main def test_service_install_dry_run_prints_commands_without_creating_unit(tmp_path, capsys): unit_path = tmp_path / "mic-clipper.service" result = main( [ "service", "install", "--dry-run", "--unit-path", str(unit_path), "--project-root", str(tmp_path), "--python", "/runtime/python", ] ) assert result == 0 assert not unit_path.exists() assert "systemctl --user enable --now mic-clipper.service" in capsys.readouterr().out