feat: export OCR public API surface
This commit is contained in:
@@ -5,3 +5,12 @@ import polygateway
|
||||
|
||||
def test_package_importable_with_version() -> None:
|
||||
assert polygateway.__version__ == "0.1.0"
|
||||
|
||||
|
||||
def test_ocr_public_surface_exported():
|
||||
"""M3 OCR 公共 API 面(设计 §3;transport 结果与 Protocol 不出顶层)。"""
|
||||
import polygateway
|
||||
|
||||
for name in ("OcrClient", "OcrSettings", "OcrTextResult", "OcrLayoutResult", "OcrLayoutElement"):
|
||||
assert hasattr(polygateway, name), name
|
||||
assert name in polygateway.__all__, name
|
||||
|
||||
Reference in New Issue
Block a user