mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 12:58:51 -06:00
refactor: move the site image tools into sitegen
This commit is contained in:
1 parent
0b91bc9e37
commit
f158f1d485
14 files changed
+561
-477
No files matched your search
@@ -121,9 +121,10 @@ class TheCollectionDoesNotDependOnTheWorkingDirectory(unittest.TestCase):
|
||||
self.assertEqual(siteinputs.bios_dir({"bios_dir": "/abs/bios"}), Path("/abs/bios"))
|
||||
|
||||
def test_the_image_tools_do_not_load_the_page_generator(self) -> None:
|
||||
for module in ("make_og_cards.py", "fetch_site_images.py", "sitegen/render.py"):
|
||||
with self.subTest(module=module):
|
||||
source = (REPO_ROOT / "scripts" / module).read_text(encoding="utf-8")
|
||||
tools = ("make_og_cards.py", "fetch_site_images.py", "make_site_icons.py")
|
||||
for path in (*(p for tool in tools for p in script_paths(tool)), SCRIPTS / "sitegen" / "render.py"):
|
||||
with self.subTest(module=path.name):
|
||||
source = path.read_text(encoding="utf-8")
|
||||
self.assertNotIn("from generate_site import", source)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user