feat(wiki): restyle GHC-05 as Wikipedia article
Co-Authored-By: OpenAI Codex <codex@openai.com>
This commit is contained in:
@@ -24,6 +24,26 @@ class WikiTopologyProxyTests(unittest.TestCase):
|
||||
self.assertEqual(html.count(public_url), 2)
|
||||
self.assertNotIn("192.168.195.241:38080", html)
|
||||
|
||||
def test_ghc05_uses_wikipedia_article_structure(self):
|
||||
html = GHC05_PATH.read_text(encoding="utf-8")
|
||||
|
||||
self.assertEqual(html.count('<h1 id="top">'), 1)
|
||||
self.assertEqual(html.count('<nav class="toc"'), 1)
|
||||
self.assertIn('aria-label="条目目录"', html)
|
||||
self.assertIn("body:has(.wiki-article) .page-header-section", html)
|
||||
self.assertIn(".wiki-article h2 { clear: none; overflow: hidden;", html)
|
||||
self.assertIn('class="infobox-label"', html)
|
||||
self.assertEqual(html.count('class="wikitable"'), 2)
|
||||
self.assertIn('<figure class="topology-embed-shell">', html)
|
||||
|
||||
def test_ghc05_has_no_peripheral_ring_walkway(self):
|
||||
html = GHC05_PATH.read_text(encoding="utf-8")
|
||||
|
||||
self.assertNotIn("四段加压走道", html)
|
||||
self.assertNotIn("外围互联互通", html)
|
||||
self.assertNotIn("居住舱段一号至二号", html)
|
||||
self.assertIn("舱段外围没有环形加压走道", html)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user