Fix hosted links for new power-saving documentation

This commit is contained in:
mikecarper committed 2026-10-17 13:44:40 -07:00
1 parent e66473a86c
commit 264fc2bccb
3 files changed
+12 -1

No files matched your search

+4 -1
View File
@@ -15,7 +15,10 @@ class HostedDocLinksTest(unittest.TestCase):
def test_every_served_document_has_its_current_exact_link(self):
manifest = LINKS.transform(ROOT)
self.assertTrue(manifest['pages'])
self.assertTrue(all(row['already_current'] for row in manifest['pages']))
pending = [row['source'] for row in manifest['pages'] if not row['already_current']]
self.assertEqual(pending, [],
'Missing or stale hosted links: ' + ', '.join(pending)
+ '; run scripts/update_hosted_doc_links.py --apply')
routes = {row['source']: row['url'] for row in manifest['pages']}
self.assertEqual(routes['index.md'], LINKS.HOSTED_BASE)
self.assertEqual(routes['research/index.md'], LINKS.HOSTED_BASE + 'research/')