mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 11:58:53 -06:00
refactor: render pages from a PageMeta in tests
This commit is contained in:
1 parent
c7d89627fb
commit
ec3a6ab8af
5 files changed
+67
-73
No files matched your search
@@ -256,10 +256,19 @@ class TheRules(unittest.TestCase):
|
||||
def test_the_logo_reaches_the_front_matter(self):
|
||||
import sitestarlight
|
||||
|
||||
_target, text = sitestarlight.finalize_page(
|
||||
"platforms/x.md", "# X\n\nBody.\n", level="setup", weight=None,
|
||||
browser_title="X", description="d", structured={}, terms={},
|
||||
logo="assets/logos/x.svg")
|
||||
_target, text = sitestarlight.render_page(
|
||||
"platforms/x.md",
|
||||
"# X\n\nBody.\n",
|
||||
sitestarlight.PageMeta(
|
||||
level="setup",
|
||||
weight=None,
|
||||
browser_title="X",
|
||||
description="d",
|
||||
structured={},
|
||||
terms={},
|
||||
logo="assets/logos/x.svg",
|
||||
),
|
||||
)
|
||||
self.assertIn("logo: assets/logos/x.svg", text)
|
||||
|
||||
def test_a_large_data_directory_is_listed_on_pages_of_its_own(self):
|
||||
|
||||
Reference in new issue
Block a user