fix: check every variant pack in step 6

This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:29:12 +01:00
1 parent 2cb9a5a495
commit 46c651f0b0
2 files changed
+34 -16

No files matched your search

+14
View File
@@ -966,6 +966,20 @@ class CatalogRatioRegressions(unittest.TestCase):
class PipelineRegressions(unittest.TestCase):
def test_integrity_checks_the_variants_step_4_built(self):
"""Step 6 ran --verify-packs without --all-variants: the five
narrowed packs were never opened and an empty _Platform passed."""
import argparse # noqa: PLC0415
def command(**flags) -> list[str]:
base = {"output_dir": "dist", "include_archived": False,
"target": None, "all_variants": False}
return pipeline.integrity_command(argparse.Namespace(**{**base, **flags}))
self.assertIn("--all-variants", command(all_variants=True))
self.assertNotIn("--all-variants", command())
self.assertEqual(command(target="switch")[-2:], ["--target", "switch"])
def test_pack_parser_removes_source_metadata(self):
output = "\n".join(
[