refactor: hoist test imports, rank pairs at module level

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 06:38:35 +02:00
1 parent c4dab556e7
commit 0b7acf1e7f
22 files changed
+85 -110

No files matched your search

+1 -2
View File
@@ -8,6 +8,7 @@ does not have, while the registry names the path.
from __future__ import annotations
import re
import sys
import unittest
from pathlib import Path
@@ -49,8 +50,6 @@ class GuidesPointAtTheReadPath(unittest.TestCase):
class GuidesNameShippedInstallers(unittest.TestCase):
def test_every_installer_named_exists(self):
"""RetroBat's guide sent users to an install.bat no release carries."""
import re
source = (REPO_ROOT / "scripts" / "packreadme.py").read_text(encoding="utf-8")
for name in set(re.findall(r"install\.(?:bat|ps1|sh|py)", source)):
with self.subTest(installer=name):