File size: 746 Bytes
80b7188 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | """Smoke test: package layout and syntax (no GPU required)."""
def test_space_gen_importable():
import importlib.util
from pathlib import Path
root = Path(__file__).resolve().parents[1]
sg = root / "space_gen.py"
assert sg.exists()
spec = importlib.util.spec_from_file_location("space_gen", sg)
assert spec and spec.loader
# Do not execute full import (pulls torch/rllm); file must parse
src = sg.read_text(encoding="utf-8")
compile(src, str(sg), "exec")
def test_firered_service_parse():
from pathlib import Path
root = Path(__file__).resolve().parents[1]
fp = root / "services" / "firered_generate.py"
compile(fp.read_text(encoding="utf-8"), str(fp), "exec")
|