feat(build): support download asset

This commit is contained in:
thePR0M3TH3AN
2025-06-21 11:09:49 -04:00
parent b701ef759f
commit 6b806d8bbd
2 changed files with 16 additions and 2 deletions

View File

@@ -48,6 +48,15 @@ def test_build(tmp_path, monkeypatch):
assert (dest / "index.html").exists()
def test_build_with_download(tmp_path, monkeypatch):
_setup_tmp(monkeypatch, tmp_path)
download_file = tmp_path / "sample.zip"
download_file.write_text("dummy")
cli.main(["build", "--download", str(download_file)])
dest = tmp_path / "host" / "voxvera" / "download" / "download.zip"
assert dest.is_file()
def test_import(tmp_path, monkeypatch):
repo = _setup_tmp(monkeypatch, tmp_path)
imports_dir = tmp_path / "imports"