feat(build): support download asset

This commit is contained in:
thePR0M3TH3AN committed 2025-06-21 11:09:49 -04:00
1 parent b1d2a4101d
commit 3b5c151ca2
2 files changed
+16 -2

No files matched your search

+9
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"