From 03ac212880d2e27bdeccfdcacfec0e090aafdfd4 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Wed, 18 Mar 2026 17:25:12 +0800 Subject: [PATCH] test: add integration tests against the real README.md Adds TestParseRealReadme covering category count, slug generation, descriptions, entry counts, previews, content HTML, subcategory rendering, also-see links, and description link stripping. Co-Authored-By: Claude --- website/tests/test_readme_parser.py | 66 +++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/website/tests/test_readme_parser.py b/website/tests/test_readme_parser.py index 06a29900..41d71b5d 100644 --- a/website/tests/test_readme_parser.py +++ b/website/tests/test_readme_parser.py @@ -4,6 +4,8 @@ import os import sys import textwrap +import pytest + sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) from readme_parser import ( _parse_section_entries, @@ -354,3 +356,67 @@ class TestRenderSectionHtml: nodes = _content_nodes("- \n") html = _render_section_html(nodes) assert "