refactor: point tests at the packs modules

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 13:47:31 +01:00
1 parent f48b66b540
commit 74207e25fc
50 files changed
+321 -259

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@ a directory called ROM).
from __future__ import annotations
import tests
from tests.sources import script_source
import tempfile
import unittest
@@ -155,7 +156,7 @@ class PlatformScopedEntries(unittest.TestCase):
def test_the_report_reads_the_shared_rules(self):
"""One rule, one function: a local `bool(f.get("bundled"))` answered
differently from verify for every installed_on/not_bundled_on entry."""
source = (REPO_ROOT / "scripts" / "cross_reference.py").read_text()
source = script_source("cross_reference.py")
self.assertNotIn('bool(f.get("bundled"))', source)
self.assertIn("installed_with_emulator(f, platform)", source)
self.assertIn("unread_on(f, platform)", source)