test(ci): add unit tests for documentation link validation (#2186) - #2349
Open
Sneha-Anand1910 wants to merge 2 commits into
Open
test(ci): add unit tests for documentation link validation (#2186)#2349Sneha-Anand1910 wants to merge 2 commits into
Sneha-Anand1910 wants to merge 2 commits into
Conversation
Author
|
Hi @utksh1 , I've addressed the requested changes and pushed the latest updates. Please let me know if there's anything else I should modify. Thank you! |
utksh1
approved these changes
Aug 4, 2026
utksh1
left a comment
Owner
There was a problem hiding this comment.
Reviewed the focused test change and its current checks are green. The PR still needs a current branch update before merge because it is behind main; I will not bypass the branch policy.
Author
|
Hi @utksh1, thanks for the approval! Branch is updated with main. This PR only adds a Python test and touches no frontend code, so the failing frontend checks look unrelated (likely pre-existing). I can't re-run from my fork , could you re-run them when you get a chance? |
utksh1
force-pushed
the
sneha/validate-doc-links-2186
branch
from
August 5, 2026 07:50
39b8f78 to
3b30a95
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds unit tests for the documentation link validator (
scripts/validate_doc_links.py). The script had no tests, so this adds coverage to make sure it reliably catches broken documentation links before they reach CI.Related Issues
Fixes #2186
Type of Change
How Has This Been Tested?
Added a new test file
testing/backend/unit/test_validate_doc_links.pywith 5 tests covering:#anchor(reports the anchor as not found)slugifyproducing GitHub-style anchorsRun locally with:
python -m pytest testing/backend/unit/test_validate_doc_links.py -vResult: all 5 tests pass.
Checklist