feat add glm-ocr core
This commit is contained in:
10
tests/core/test_dependencies.py
Normal file
10
tests/core/test_dependencies.py
Normal 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()
|
||||
Reference in New Issue
Block a user