feat add glm-ocr core

This commit is contained in:
liuyuanchuang
2026-03-09 16:51:06 +08:00
parent d74130914c
commit 6dfaf9668b
17 changed files with 1687 additions and 140 deletions

View File

@@ -0,0 +1,10 @@
import pytest
from app.core import dependencies
def test_get_glmocr_endtoend_service_raises_when_layout_detector_missing(monkeypatch):
monkeypatch.setattr(dependencies, "_layout_detector", None)
with pytest.raises(RuntimeError, match="Layout detector not initialized"):
dependencies.get_glmocr_endtoend_service()