feat: rebuild Guanghan topology diagram

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
2026-07-09 16:55:39 +08:00
co-authored by Codex
parent 5352173f08
commit 2780847c50
2 changed files with 498 additions and 3 deletions
+5 -3
View File
@@ -65,11 +65,13 @@ class GuanghanTopologySourceTests(unittest.TestCase):
def test_every_clickable_module_has_dimensions_field(self) -> None:
for module_id in CLICKABLE_MODULES:
self.assertRegex(
match = re.search(
rf'"{re.escape(module_id)}"\s*:\s*\{{(.*?)\n \}}(?:,|\n)',
self.html,
rf'"{re.escape(module_id)}"\s*:\s*\{{.*?dimensions\s*:',
msg=f"{module_id} is missing dimensions",
flags=re.S,
)
self.assertIsNotNone(match, msg=f"{module_id} detail object is missing")
self.assertIn("dimensions:", match.group(1), msg=f"{module_id} is missing dimensions")
def test_timeline_contains_only_the_two_real_corridors(self) -> None:
for incorrect in (