From 34319a56e22f85e53ecaac16db40ca175f020dc9 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Thu, 5 Nov 2026 11:40:56 +0100 Subject: [PATCH] chore: test the bundled rule on the collection --- tests/test_audit_regressions.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test_audit_regressions.py b/tests/test_audit_regressions.py index 4f18a8ca8..cb0b68181 100644 --- a/tests/test_audit_regressions.py +++ b/tests/test_audit_regressions.py @@ -6283,6 +6283,20 @@ class WhatOnlyAnInstallProvidesIsListed(unittest.TestCase): copies = bundled_only.other_copies([row], Path(tmp)) self.assertEqual([c["path"] for c in copies], [Path(tmp, "dir2/a.bmp").as_posix()]) + def test_the_collection_holds_no_copy_only_an_install_provides(self): + """The pull request checks run this suite, not the pipeline: without + this, a copy only a bundled entry reaches merges green.""" + import bundled_only + from common import load_database, load_emulator_profiles + + rows = bundled_only.bundled_only( + load_database(str(ROOT / "database.json")), + load_emulator_profiles(str(ROOT / "emulators")), + str(ROOT / "platforms"), ROOT / "install", + ) + self.assertEqual([f"{r['path']} ({', '.join(r['emulators'])})" for r in rows], [], + "remove the copy: the emulator's own install provides it") + class TheApiSchemaHoldsTheFieldsItPromises(unittest.TestCase): """The data page promises fields are only added within v1, and the