feat: rebuild Guanghan topology diagram
Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user