From e8b105a5fb26d877f7a9f6b0d5719e225f52450b Mon Sep 17 00:00:00 2001 From: Sebastian Petrescu Date: Tue, 28 Jul 2026 11:03:38 +0300 Subject: [PATCH] test(md2doc): style smoke test for all 5 styles --- tests/test_md2doc_styles.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/test_md2doc_styles.py diff --git a/tests/test_md2doc_styles.py b/tests/test_md2doc_styles.py new file mode 100644 index 0000000..74e5378 --- /dev/null +++ b/tests/test_md2doc_styles.py @@ -0,0 +1,19 @@ +"""Smoke test — all 5 styles produce valid DOCX from same input.""" +import subprocess +import sys +from pathlib import Path + +REPO = Path(__file__).parent.parent + + +def test_all_styles_produce_valid_docx(tmp_path): + fixture = REPO / "pluxee-todo.md" + for style in ("elegant", "report", "default", "dark", "mono"): + out = tmp_path / f"pluxee-{style}.docx" + r = subprocess.run( + [sys.executable, "md2doc.py", str(fixture), "-o", str(out), "--style", style, "-q"], + cwd=REPO, capture_output=True, text=True + ) + assert r.returncode == 0, f"style={style} failed: stderr={r.stderr}" + assert out.exists() + assert out.stat().st_size > 1000, f"style={style} produced too-small file"