From 3a5a08b6e883f5a00dd8cb6d666282f8533945c0 Mon Sep 17 00:00:00 2001 From: Shay Date: Sun, 31 May 2026 03:57:06 -0700 Subject: [PATCH] test(language): pin consequent ownership during syntax pack tests --- tests/test_en_core_syntax_v1_pack.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/test_en_core_syntax_v1_pack.py b/tests/test_en_core_syntax_v1_pack.py index add9e2b4..fc9e6664 100644 --- a/tests/test_en_core_syntax_v1_pack.py +++ b/tests/test_en_core_syntax_v1_pack.py @@ -47,7 +47,7 @@ EXPECTED_LEMMAS: tuple[str, ...] = ( "sentence", "phrase", "antecedent", - "consequent", + "consequent_role", "referent", "anaphor", "qualifier", @@ -168,7 +168,14 @@ def test_resolver_routes_syntax_lemmas_to_this_pack() -> None: def test_gloss_resolver_routes_syntax_lemmas_to_this_pack() -> None: clear_resolver_cache() - for lemma in ("subject", "predicate", "antecedent", "negation", "evidence_span"): + for lemma in ( + "subject", + "predicate", + "antecedent", + "consequent_role", + "negation", + "evidence_span", + ): resolved = resolve_gloss(lemma) assert resolved is not None, lemma pack_id, pos, gloss = resolved @@ -187,6 +194,7 @@ def test_prior_pack_lemma_resolution_unchanged() -> None: ("all", "en_core_quantitative_v1"), ("place", "en_core_spatial_v1"), ("cause", "en_core_causation_v1"), + ("consequent", "en_core_causation_v1"), ("never", "en_core_polarity_v1"), ("parent", "en_core_relations_v1"), ("mother", "en_core_relations_v2"),