From 6f0692aada3dd32bd2745a0854d14bb346a0e3ab Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 17 Oct 2026 02:52:49 +0200 Subject: [PATCH] chore: build a group's test pack under its given name --- tests/test_verify_pack_choice.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_verify_pack_choice.py b/tests/test_verify_pack_choice.py index 17ca00d9..dd1f5c2d 100644 --- a/tests/test_verify_pack_choice.py +++ b/tests/test_verify_pack_choice.py @@ -110,9 +110,11 @@ class GroupRenameKeepsSystemTag(unittest.TestCase): os.chdir(REPO_ROOT) self.addCleanup(os.chdir, previous) with tempfile.TemporaryDirectory(dir=REPO_ROOT / "tmp") as tmp: - built = Path(tmp) / f"RetroArch_x_BIOS_Pack{gp._system_tag(['atari-lynx'])}.zip" - - def fake_generate(*a, **kw): + def fake_generate(*a, pack_name=None, **kw): + # The group's name is handed in: nothing is renamed afterwards. + built = Path(tmp) / ( + pack_name or f"RetroArch_x_BIOS_Pack{gp._system_tag(['atari-lynx'])}.zip" + ) built.write_bytes(b"") return str(built)