mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 01:53:56 -06:00
fix: run every class when a site test runs alone
Two classes were appended after unittest.main().
This commit is contained in:
1 parent
213b20e2c8
commit
62ed48e0a1
2 files changed
+8
-8
No files matched your search
@@ -427,10 +427,6 @@ class TheSearchSkipsLinkLists(unittest.TestCase):
|
||||
self.assertIn(short, text)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
||||
class OneDefinitionPerName(unittest.TestCase):
|
||||
"""generate_site defined _REGION_WORDS twice: the second table replaced
|
||||
the first at import, and _region_word, written beside the first, never
|
||||
@@ -505,3 +501,7 @@ class NoTooltipInsideAName(unittest.TestCase):
|
||||
"Emulator settings come first. The PlayStation BIOS goes there.", terms)
|
||||
self.assertIn('title="An app that acts like a console.">Emulator</abbr>', marked)
|
||||
self.assertIn('>BIOS</abbr>', marked)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -116,10 +116,6 @@ class SystemNames(unittest.TestCase):
|
||||
self.assertFalse(names & siterender.program_names(self.profiles))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
||||
class SectionsComeBeforeThePlan(unittest.TestCase):
|
||||
"""plan_emulator_pages names systems. Run before set_console_sections,
|
||||
it made siterender read ./database.json and ./emulators whatever --db
|
||||
@@ -137,3 +133,7 @@ class SectionsComeBeforeThePlan(unittest.TestCase):
|
||||
if isinstance(node, ast.Call) and isinstance(node.func, ast.Name):
|
||||
lines.setdefault(node.func.id, node.lineno)
|
||||
self.assertLess(lines["set_console_sections"], lines["plan_emulator_pages"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user