FU-3: re-index on content change (GAP-09) #14

Merged
chaim merged 11 commits from fix/fu3-reindex-on-change into main 2026-05-30 22:13:54 +00:00
Showing only changes of commit 7e35a24d80 - Show all commits

View File

@@ -80,3 +80,10 @@ def test_reindex_case_law_missing_row_raises(monkeypatch):
monkeypatch.setattr(ingest.db, "get_case_law", _none) monkeypatch.setattr(ingest.db, "get_case_law", _none)
with pytest.raises(ValueError, match="not found"): with pytest.raises(ValueError, match="not found"):
_run(ingest.reindex_case_law(uuid4())) _run(ingest.reindex_case_law(uuid4()))
def test_reindex_case_law_empty_text_raises(monkeypatch):
async def _empty(x): return {"id": uuid4(), "full_text": " "}
monkeypatch.setattr(ingest.db, "get_case_law", _empty)
with pytest.raises(ValueError, match="no stored full_text"):
_run(ingest.reindex_case_law(uuid4()))