From f60c1539ea1ff69b3fa6830a518df2ab79aecb6c Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Fri, 24 Jul 2026 23:21:29 -0400 Subject: [PATCH] Say "inner doc", not "nested doc", in the singular-key test docstrings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Final review sweep: in this codebase "nested" is reserved for the Elasticsearch mapping type, and these InnerDoc-serialization docstrings used it colloquially — the same dual-use-term trap documented in AGENTS.md. Co-Authored-By: Claude Fable 5 --- tests/test_elastic.py | 2 +- tests/test_opensearch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_elastic.py b/tests/test_elastic.py index 3aad7de6..e739b49c 100644 --- a/tests/test_elastic.py +++ b/tests/test_elastic.py @@ -803,7 +803,7 @@ class TestAggregateDocCombinedResults(unittest.TestCase): def test_spf_result_serializes_under_singular_result_key(self): """The _SPFResult class previously declared a dead ``results`` (plural) field while the save path wrote ``result``; verify the - serialized nested doc actually uses the singular key.""" + serialized inner doc actually uses the singular key.""" doc = elastic_module._AggregateReportDoc() doc.add_spf_result( domain="example.org", scope="mfrom", result="pass", human_result=None diff --git a/tests/test_opensearch.py b/tests/test_opensearch.py index 835586aa..c1748466 100644 --- a/tests/test_opensearch.py +++ b/tests/test_opensearch.py @@ -931,7 +931,7 @@ class TestAggregateDocCombinedResults(unittest.TestCase): def test_spf_result_serializes_under_singular_result_key(self): """The _SPFResult class previously declared a dead ``results`` (plural) field while the save path wrote ``result``; verify the - serialized nested doc actually uses the singular key.""" + serialized inner doc actually uses the singular key.""" doc = opensearch_module._AggregateReportDoc() doc.add_spf_result( domain="example.org", scope="mfrom", result="pass", human_result=None