sync update from LAN repo (source master @ ca48c4ec)

This commit is contained in:
gozeros committed 2026-11-05 10:53:54 +08:00
1 parent 8bc8b0e082
commit ea9dcff9c0
873 files changed
+107866 -14011

No files matched your search

@@ -3,9 +3,22 @@ from __future__ import annotations
from pathlib import Path
from types import SimpleNamespace
import pytest
from deerflow.utils import file_conversion
@pytest.fixture(autouse=True)
def local_parser(monkeypatch):
# Parser-selection unit tests inject readers locally. Production always
# sends this same top-level parser entry point to spawned worker processes.
monkeypatch.setattr(
file_conversion,
"_run_conversion_in_process",
lambda path, converter: file_conversion._convert_document_worker(str(path), converter),
)
def test_legacy_word_is_normalized_before_markitdown(monkeypatch, tmp_path: Path) -> None:
source = tmp_path / "legacy.doc"
source.write_bytes(b"legacy")