From 8fe961a1ea6138ba01e26e8d27d5cf8d1c642998 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 6 Oct 2026 07:37:41 +0200 Subject: [PATCH] fix: read the hle index scope from its comprehension --- tests/test_validation_scope.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_validation_scope.py b/tests/test_validation_scope.py index 92989c22..b631e19c 100644 --- a/tests/test_validation_scope.py +++ b/tests/test_validation_scope.py @@ -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()