can execute files and install packages

This commit is contained in:
Stanislas Jouffroy 2025-03-04 22:36:00 +01:00
parent 230cf99f06
commit f611ef603b
3 changed files with 42 additions and 2 deletions

View file

@ -3,10 +3,17 @@ from pathlib import Path
from majordome import main
def test_download_and_save_latest_asset(freetube_url, freetube_amd64_deb_mnemonic):
def test_download_and_save_latest_asset(
freetube_url, freetube_amd64_deb_mnemonic, freetube_tag_name_mnemonic
):
destination = Path(__file__).parent / "tmp"
main.download_latest(freetube_url, freetube_amd64_deb_mnemonic, destination)
main.download_latest(
freetube_url,
freetube_amd64_deb_mnemonic,
freetube_tag_name_mnemonic,
destination,
)
files = list(destination.glob("*"))
assert len(files) == 1