"""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")