fix: respect target page restrictions during body section navigation
This commit is contained in:
@@ -169,6 +169,7 @@ def test_plan_navigation_finds_future_work_body_despite_nonempty_semantic_hits(s
|
||||
"page_type": "body", "text": noise.text, "rank": .03}])
|
||||
assert any(hit["page"] == 14 and "t0" in hit["target_ids"] for hit in selected["evidence"])
|
||||
assert all(hit["page_type"] == "body" for hit in selected["evidence"])
|
||||
assert navigator({**targets[0], "allowed_page_types": ["appendix"]}) == []
|
||||
|
||||
|
||||
def test_heading_navigation_supplements_existing_hits_for_custom_labels():
|
||||
|
||||
Reference in New Issue
Block a user