fix: align tests with the new help and messages

The --skip-packs help and the validate_pr fetch error were reworded, and a batocera page with no tab bar is plain Markdown that keeps the underscore entity, read here as a browser shows it.
This commit is contained in:
Abdessamad Derraz committed 2026-11-05 20:33:37 +01:00
1 parent 62ed48e0a1
commit 943add6df0
4 files changed
+9 -4

No files matched your search

+5 -1
View File
@@ -422,7 +422,11 @@ class BuiltBatoceraPage(unittest.TestCase):
# PlayStation's list is long enough to sit on a page of its own.
pages = [main] + [p.read_text(encoding="utf-8") for p in
(DIST / "platforms").glob("batocera-sony-playstation*/index.html")]
html = "".join(pages)
# Read as a browser shows it: a page with no tab bar is plain
# Markdown, which keeps the entity a name's underscore is written as.
import html as _html
html = _html.unescape("".join(pages))
for text in ("Served by:", "scph1001_v20.bin", "https://github.com/stenzek/duckstation/blob/"):
with self.subTest(text=text):
self.assertTrue(text in html)