fix(segmentation): hash the extracted text and let the plan key fire
This commit is contained in:
parent
6dce4355be
commit
9e9bb8645d
13 changed files with 272 additions and 40 deletions
|
|
@ -601,6 +601,7 @@ def segmentation_payload(**overrides: Any) -> dict[str, Any]:
|
|||
payload: dict[str, Any] = {
|
||||
"version": "1",
|
||||
"source_sha256": "a" * 64,
|
||||
"text_sha256": "c" * 64,
|
||||
"extractor_id": "text",
|
||||
"extractor_version": "1.0.0",
|
||||
"adjudicated_at": INGESTED_AT,
|
||||
|
|
@ -664,6 +665,7 @@ def test_segmentation_extractor_mismatch() -> None:
|
|||
assert_plan_applies(
|
||||
plan,
|
||||
source_sha256="b" * 64,
|
||||
text_sha256=plan.text_sha256,
|
||||
extractor_id=plan.extractor_id,
|
||||
extractor_version=plan.extractor_version,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue