From b539e3609681d9443881ecd82e2bc32ccb477606 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Tue, 28 Jul 2026 18:56:29 -0400 Subject: [PATCH] test: assert display seed keeps exactly two inline payloads across rebuilds --- tests/test_plugins/test_geenforce_display_seed.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_plugins/test_geenforce_display_seed.py b/tests/test_plugins/test_geenforce_display_seed.py index 93a0fa9..3149795 100644 --- a/tests/test_plugins/test_geenforce_display_seed.py +++ b/tests/test_plugins/test_geenforce_display_seed.py @@ -115,6 +115,11 @@ def test_seed_draft_is_idempotent(db): entries = ManifestEntry.query.filter_by(scopeid=second['scopeid']).all() assert len(entries) == 6 + # Exactly two inline payloads (dispatcher + always-on) exist after a rebuild, + # not more - a payload-count invariant. (The underlying re-publish FK crash + # only reproduces on MySQL, which enforces the manifestpayloads FK; it was + # verified there directly. SQLite does not enforce it.) + assert ManifestPayload.query.count() == 2 def test_build_manifest_has_no_smb_exe_payloads(db):