sync update from LAN repo (source dhk-1 @ 3b1ec5b4)
This commit is contained in:
1 parent
da6521b6cb
commit
264e2200d6
995 files changed
+148105
-13399
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")
|
||||
|
||||
Reference in new issue
Block a user