docs: update api ref test (#4516)

This commit is contained in:
Vadym Barda
2025-05-02 13:58:29 -04:00
committed by GitHub
parent ee04c32bb3
commit df58a71567
2 changed files with 2 additions and 2 deletions
@@ -277,7 +277,7 @@ def update_markdown_with_imports(markdown: str, path: str) -> str:
f'<a href="{imp["docs"]}">{imp["imported"]}</a>' for imp in imports
)
# Return the code block with prepended API reference links
return f"{indent}<sup><i>API: {api_links}</i></sup>\n\n{original_code_block}"
return f"{indent}<sup><i>API Reference: {api_links}</i></sup>\n\n{original_code_block}"
# Apply the replace_code_block function to all matches in the markdown
updated_markdown = code_block_pattern.sub(replace_code_block, markdown)
+1 -1
View File
@@ -14,7 +14,7 @@ from langgraph.types import interrupt
"""
EXPECTED_MARKDOWN = """\
API Reference: <a href="https://langchain-ai.github.io/langgraph/reference/types/#langgraph.types.interrupt">interrupt</a>
<sup><i>API Reference: <a href="https://langchain-ai.github.io/langgraph/reference/types/#langgraph.types.interrupt">interrupt</a></i></sup>
```python
from langgraph.types import interrupt