This harness includes two test layers:
test_core.py
- validates
DocxSessionstate transitions - confirms mutating operations alter document state correctly
- verifies undo/redo stack behavior
- checks save/open round-trip and metadata writes
test_full_e2e.py
- exercises the installed CLI command via subprocess
- verifies one-shot JSON output and persisted
.docxedits - verifies default REPL path and in-session undo
From python-docx/agent-harness:
python -m pip install -e .
python -m pytest -q cli_anything/python_docx/tests