mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 02:57:52 -06:00
chore: clear the ruff findings in tests
This commit is contained in:
1 parent
382241fb1b
commit
cc028fe7ee
49 files changed
+290
-183
No files matched your search
@@ -370,13 +370,15 @@ class TheManifestResolvesLikeThePack(unittest.TestCase):
|
||||
for fn in ast.walk(ast.parse(source)):
|
||||
if not isinstance(fn, ast.FunctionDef) or fn.name == "generate_md5_pack":
|
||||
continue
|
||||
for node in ast.walk(fn):
|
||||
missing.extend(
|
||||
f"{fn.name}:{node.lineno}"
|
||||
for node in ast.walk(fn)
|
||||
if (
|
||||
isinstance(node, ast.Call)
|
||||
and getattr(node.func, "id", None) == "resolve_file"
|
||||
and "data_dir_registry" not in {k.arg for k in node.keywords}
|
||||
):
|
||||
missing.append(f"{fn.name}:{node.lineno}")
|
||||
)
|
||||
)
|
||||
self.assertEqual(missing, [])
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user