mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 13:33:24 -05:00
fix: read the hle index scope from its comprehension
This commit is contained in:
1 parent
ce239d32c1
commit
8fe961a1ea
1 file changed
+4
-2
@@ -42,8 +42,10 @@ class ValidationIndexScope(unittest.TestCase):
|
||||
class HleIndexScope(unittest.TestCase):
|
||||
def test_hle_index_reads_the_platform_cores(self):
|
||||
verify = (REPO_ROOT / "scripts" / "verify.py").read_text(encoding="utf-8")
|
||||
start = verify.index("hle_index: dict[str, bool] = {}")
|
||||
self.assertIn("for profile in platform_profiles.values():", verify[start:start + 200])
|
||||
start = verify.index(" hle_index = {")
|
||||
block = verify[start:verify.index("}", start)]
|
||||
self.assertIn("for profile in platform_profiles.values()", block)
|
||||
self.assertNotIn("profiles.values()", block.replace("platform_profiles.values()", ""))
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user