Spaces:
Running
Running
Commit History
-
tests: cover the Word maths and image pipeline
Sahil Kumar +1: Claude Opus 5First tests in the repo. pytest collected 0 items before this. Fixtures build .docx files on the fly from OMML written the way Word writes it, rather than committing binaries, so each test shows the markup it exercises. Covers OMML -> MathML for the constructs papers contain, the no-stylesheet fallback and its warning, the unconverted-marker guard, image extraction and the undrawable-metafile case, every option layout keeping its solution, and that the reviewed HTML and the uploaded payload are the same string. Two tests document limitations rather than assert correctness: Word's boxed and cancelled formulas convert to <menclose>, which no browser draws, and data-URI images carry no dimensions so the CMS gets an unsized image where the preview only looks right because of its own CSS. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>0451415