11 lines
333 B
Python
11 lines
333 B
Python
|
|
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()
|