← Về thư mục
scripts/test_verification_gate.py
- _entry · function · L27-L44 — def _entry(**overrides): # Production-shaped corpus entry: schema-valid against # literature_corpus_entry.schema.json (additionalProperties:False). It carries # NEITHER ref_slug NOR anchor — both live in writer prose and are passed to # verify_citation as explicit params, never read off the corpus entry. Carries # all five required corpus fields (citation_key/title/authors/year/source_pointer) # so the fixture matches the real shape the gate sees in production.
- _clients · function · L50-L65 — def _clients(*, crossref=None, openalex=None, semantic_scholar=None, arxiv=None)
- default · function · L53-L59 — def default()
- test_matched_yields_true_and_id_queried · function · L71-L80 — def test_matched_yields_true_and_id_queried()
- test_id_keyed_unmatched_yields_false · function · L83-L88 — def test_id_keyed_unmatched_yields_false()
- test_title_only_unmatched_yields_unresolvable · function · L91-L96 — def test_title_only_unmatched_yields_unresolvable()
- test_resolver_outage_is_unreachable · function · L99-L109 — def test_resolver_outage_is_unreachable()
- test_all_unreachable_is_unresolvable · function · L112-L130 — def test_all_unreachable_is_unresolvable()
- test_manual_entry_all_skipped_unresolvable · function · L133-L138 — def test_manual_entry_all_skipped_unresolvable()
- test_arxiv_skipped_on_non_arxiv_citation · function · L141-L145 — def test_arxiv_skipped_on_non_arxiv_citation()
- test_anchor_present_true_for_page_kind · function · L148-L152 — def test_anchor_present_true_for_page_kind()
- test_anchor_present_false_for_none_kind · function · L155-L160 — def test_anchor_present_false_for_none_kind()
- test_anchor_present_false_when_anchor_omitted · function · L163-L167 — def test_anchor_present_false_when_anchor_omitted()
- test_anchor_is_not_read_off_the_corpus_entry · function · L170-L179 — def test_anchor_is_not_read_off_the_corpus_entry()
- test_outcome_carries_keys_and_timestamp · function · L182-L187 — def test_outcome_carries_keys_and_timestamp()
- test_outcome_validates_against_summary_schema · function · L190-L208 — def test_outcome_validates_against_summary_schema()
- test_ref_slug_is_not_read_off_the_corpus_entry · function · L211-L221 — def test_ref_slug_is_not_read_off_the_corpus_entry()
- test_corpus_fixture_is_schema_valid · function · L224-L236 — def test_corpus_fixture_is_schema_valid()
- test_verify_passport_runs_each_entry · function · L242-L257 — def test_verify_passport_runs_each_entry()
- test_verify_passport_joins_anchors_by_ref_slug · function · L260-L278 — def test_verify_passport_joins_anchors_by_ref_slug()
- test_verify_passport_empty_corpus · function · L281-L285 — def test_verify_passport_empty_corpus()
- test_verify_passport_raises_on_missing_join · function · L288-L296 — def test_verify_passport_raises_on_missing_join()
- test_verify_passport_outputs_are_schema_valid · function · L299-L318 — def test_verify_passport_outputs_are_schema_valid()
- test_cache_argument_is_honest_not_silent_noop · function · L321-L327 — def test_cache_argument_is_honest_not_silent_noop()
- test_verify_citation_rejects_non_string_or_empty_ref_slug · function · L331-L342 — def test_verify_citation_rejects_non_string_or_empty_ref_slug(bad)