Repository navigation
Add tests for MarkdownIt error guards and common.utils branches - #501
Open
sohams5002 wants to merge 4 commits into
Open
sohams5002 wants to merge 4 commits into
sohams5002 wants to merge 4 commits into
Conversation
This branch has not been deployed
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.
Adds unit tests for previously uncovered branches, in the same style as #498:
tests/test_api/test_utils.py(new):isValidEntityCode: invalid ranges (0xFDD0-0xFDEF, 0xFFFE/0xFFFF endings, 0x0B, 0x0E-0x1F, 0x7F-0x9F) and valid boundary codesarrayReplaceAt,stripEscapeisWhiteSpacefor the Zs separator range 0x2000-0x200AunescapeAllwith a decimal numeric entity (the base-10 branch ofreplaceEntityPattern)tests/test_api/test_main.py:TypeErrorwhenoptions_updateis passed positionally as a non-mapping (the renderer_cls signature-change guard)KeyErrorfor an unknown preset name,ValueErrorfor an empty configconfigure()with acomponentsconfigadd_render_rulewhen the renderer output format matchesTypeErrorguards inparse/parseInlinefor non-mappingenvand non-stringsrcAll 1187 tests pass locally; ruff check and ruff format are clean.