chore: Condensing the latex test backend into multiple files#3281
Merged
PeterStaar-IBM merged 1 commit intodocling-project:mainfrom Apr 13, 2026
Merged
chore: Condensing the latex test backend into multiple files#3281PeterStaar-IBM merged 1 commit intodocling-project:mainfrom
PeterStaar-IBM merged 1 commit intodocling-project:mainfrom
Conversation
Signed-off-by: Aditya Sasidhar <telikicherlaadityasasidhar@gmail.com>
Contributor
|
✅ DCO Check Passed Thanks @adityasasidhar, all your commits are properly signed off. 🎉 |
Contributor
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Contributor
Author
|
Hey @PeterStaar-IBM , Please consider this PR for the issue #3281. Apologies for creating another PR, I had to close it because my older docling fork got riddled with multiple issues, merge conflicts and branches so the faster win would have been to start clean. ( Basically too close for missiles, switching to guns case ). |
PeterStaar-IBM
approved these changes
Apr 13, 2026
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
3 tasks
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
Resolves #3235
This PR improves the maintainability and scalability of the LaTeX testing suite by modularizing the massive
tests/test_backend_latex.pyfile (which had grown to over 1,800 lines).The monolithic test file has been removed and its contents systematically distributed into a dedicated
tests/test_latex/subdirectory based on the features being tested, without removing or altering the logic of any existing test logic.Changes Made:
Removed
tests/test_backend_latex.py.Created feature-specific test modules:
test_basic.py(e2e, conversions, arguments, file loading)test_tables.py(tabular, multirow, empty tables)test_math.py(math parsing, formulas, inline/display)test_lists.py(itemize, enumerate, nested lists)test_figures.py(includegraphics, missing images, captions)test_macros.py(text formatting, cite, fallbacks, spacing)test_environments.py(abstract, verbatim, lstlisting)Extracted shared dependencies, headers, and the
latex_pathsfixture intotests/test_latex/conftest.pyfor clean, native Pytest discovery.Also added an inline
# type: ignoreindocling/backend/html_backend.pyto satisfymypypre-commit checks locally for missing Playwright stubs.Checklist: