mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 19:38: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
@@ -657,11 +657,13 @@ class BuiltSearchAndCrumbs(unittest.TestCase):
|
||||
for path in (DIST / "systems").rglob("index.html"):
|
||||
# The search fields are attributes on empty spans. The title
|
||||
# meta reads the visible h1.
|
||||
for match in re.finditer(r'<(\w+)[^>]*data-pagefind-meta="(?:files|aliases|devices|consoles|terms):'
|
||||
r'[^>]*>([^<]*)</\1>',
|
||||
path.read_text(encoding="utf-8")):
|
||||
if match[2].strip():
|
||||
texts.append(str(path.relative_to(DIST)))
|
||||
texts.extend(
|
||||
str(path.relative_to(DIST))
|
||||
for match in re.finditer(r'<(\w+)[^>]*data-pagefind-meta="(?:files|aliases|devices|consoles|terms):'
|
||||
r'[^>]*>([^<]*)</\1>',
|
||||
path.read_text(encoding="utf-8"))
|
||||
if match[2].strip()
|
||||
)
|
||||
self.assertEqual(texts, [])
|
||||
|
||||
def test_a_setups_console_page_names_its_setup(self) -> None:
|
||||
|
||||
Reference in new issue
Block a user