Native DeepSeek datasheet extraction in periscope/src (Fase C3).
Pipeline and LCSC resolve call datasheet_extract; inherited extraction.py stays in dependency as fallback. No Anthropic Console skill ids.
This commit is contained in:
@@ -52,12 +52,12 @@ def test_ambiguous_string_returns_none():
|
||||
|
||||
|
||||
def test_resolve_from_value_skips_llm_when_parseable(monkeypatch):
|
||||
from backend.services.extraction import resolve_from_value
|
||||
from backend.services.datasheet_extract import resolve_from_value
|
||||
|
||||
async def boom(*_a, **_k):
|
||||
raise AssertionError("LLM must not run")
|
||||
|
||||
monkeypatch.setattr("backend.services.extraction.call_with_fallback", boom)
|
||||
monkeypatch.setattr("backend.services.datasheet_extract.call_with_fallback", boom)
|
||||
tax = TAXONOMY
|
||||
model = asyncio.run(
|
||||
resolve_from_value(
|
||||
@@ -71,12 +71,12 @@ def test_resolve_from_value_skips_llm_when_parseable(monkeypatch):
|
||||
|
||||
|
||||
def test_resolve_from_value_placeholder_no_llm(monkeypatch):
|
||||
from backend.services.extraction import resolve_from_value
|
||||
from backend.services.datasheet_extract import resolve_from_value
|
||||
|
||||
async def boom(*_a, **_k):
|
||||
raise AssertionError("LLM must not run")
|
||||
|
||||
monkeypatch.setattr("backend.services.extraction.call_with_fallback", boom)
|
||||
monkeypatch.setattr("backend.services.datasheet_extract.call_with_fallback", boom)
|
||||
tax = TAXONOMY
|
||||
with pytest.raises(ValueError, match="Placeholder"):
|
||||
asyncio.run(
|
||||
|
||||
Reference in New Issue
Block a user