From 29b763d68f5daf19156aeabb01c4bf0df572c3f8 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 06:34:54 +0800 Subject: [PATCH] Update test_site_assets.py --- website/builder/test_site_assets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/website/builder/test_site_assets.py b/website/builder/test_site_assets.py index b1da9376..5a91f056 100644 --- a/website/builder/test_site_assets.py +++ b/website/builder/test_site_assets.py @@ -42,6 +42,7 @@ class SearchIndexTests(unittest.TestCase): sections = [s for s in doc['sections'] if s['id'] == 'tcp-拥塞控制'] self.assertEqual(len(sections), 1) self.assertEqual(sections[0]['text'], '慢开始') + self.assertEqual(sections[0]['level'], 2) def test_comments_and_example_asset_urls_are_not_published(self): content = '\n```html\n\n```\n\n[正文](/notes/示例.md)\n'