From 689f79afec82577843a2401fa0a93a9d85358d2d Mon Sep 17 00:00:00 2001 From: Gerardo Betancourt Date: Wed, 28 Oct 2026 12:14:50 -0400 Subject: [PATCH] Keep release tests aligned with helper trust floor and single-admin guide --- source/tests/test_agent_guide.py | 3 ++- source/tests/test_package_maintainer.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/tests/test_agent_guide.py b/source/tests/test_agent_guide.py index 9cde68d..4c06632 100644 --- a/source/tests/test_agent_guide.py +++ b/source/tests/test_agent_guide.py @@ -69,7 +69,8 @@ class GuideTests(unittest.TestCase): self.assertNotIn(marker,text) def test_human_agent_and_transcript_boundary_are_explicit(self): text=guide.render_text('all') - self.assertIn('human operators and authorized agents',text) + self.assertIn('one human administrator',text) + self.assertIn('authorized agents',text) self.assertIn('terminal transcript',text) self.assertIn('not an authentic full-screen image',text) self.assertIn('normal operating-system authentication',text) diff --git a/source/tests/test_package_maintainer.py b/source/tests/test_package_maintainer.py index c4e141a..59fe2be 100644 --- a/source/tests/test_package_maintainer.py +++ b/source/tests/test_package_maintainer.py @@ -9,7 +9,7 @@ import tempfile import unittest sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "packaging")) -from build_expanded import maintainer_prerm +from build_expanded import maintainer_prerm, PRIVILEGED_HELPER_FLOOR from build_profiles import CANDIDATE_VERSION @@ -30,7 +30,7 @@ class MaintainerScriptTests(unittest.TestCase): self.screen = self.root / "screen-access.json" def run_script(self, args, *, fail=0, screen=False): - script = maintainer_prerm(CANDIDATE_VERSION) + script = maintainer_prerm(PRIVILEGED_HELPER_FLOOR) # Only side-effecting commands and config probes are redirected. The # real dpkg comparisons are read-only and verify Debian version ordering. script = script.replace("/usr/bin/python3", shlex.quote(str(self.stub)))