test(fusion_accounting_assets): local LLM useful-life smoke (skips without LLM)

Auto-detects LM Studio (:1234) or Ollama (:11434) on
host.docker.internal / localhost; skips silently when no server is
reachable so CI stays green. When a server is present it exercises the
full predict_useful_life path through the OpenAI-compatible adapter,
catching prompt / JSON-parsing regressions that mocked LLMs hide.

Tagged 'local_llm' so it can be selected explicitly when an LLM is
known-available.

Made-with: Cursor
This commit is contained in:
gsinghpal
2026-04-19 20:23:30 -04:00
parent 6344a75150
commit 7e2c31e371
3 changed files with 85 additions and 1 deletions

View File

@@ -28,3 +28,4 @@ from . import test_audit_report
from . import test_coexistence
from . import test_assets_tours
from . import test_perf_controller
from . import test_local_llm_compat