File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from .augmentation import NoiseAugmentation
22from .AugmentationManager import AugmentationManager
33from .BackgroundManager import BackgroundManager
4+ from .engine import OCRSmithEngine
45from .FontManager import FontManager
5- from .OCRSmithEngine import OCRSmithEngine
66from .TextPlacementManager import TextPlacementManager
77from .TextRenderingManager import TextRenderingManager
Original file line number Diff line number Diff line change 11import argparse
22
33from ocrsmith .config .loader import load_config
4- from ocrsmith .core .OCRSmithEngine import OCRSmithEngine
4+ from ocrsmith .core .engine import OCRSmithEngine
55
66
77def parse_overrides (pairs ):
File renamed without changes.
Original file line number Diff line number Diff line change 99
1010# --- Import all necessary classes ---
1111from ocrsmith .config .schema import AppConfig
12- from ocrsmith .core .OCRSmithEngine import OCRSmithEngine
12+ from ocrsmith .core .engine import OCRSmithEngine
1313from ocrsmith .core .text_placement import PlacementResult
1414
1515# --- Fixtures ---
@@ -66,12 +66,12 @@ def temp_dir():
6666
6767# Patch all managers at the class level to ensure they are mocked for every test.
6868# This prevents real managers from being initialized with mock configs.
69- @patch ("ocrsmith.core.OCRSmithEngine .BackgroundManager" )
70- @patch ("ocrsmith.core.OCRSmithEngine .TextRenderingManager" )
71- @patch ("ocrsmith.core.OCRSmithEngine .TextPlacementManager" )
72- @patch ("ocrsmith.core.OCRSmithEngine .AugmentationManager" )
73- @patch ("ocrsmith.core.OCRSmithEngine .FontManager" )
74- @patch ("ocrsmith.core.OCRSmithEngine .TextDataManager" )
69+ @patch ("ocrsmith.core.engine .BackgroundManager" )
70+ @patch ("ocrsmith.core.engine .TextRenderingManager" )
71+ @patch ("ocrsmith.core.engine .TextPlacementManager" )
72+ @patch ("ocrsmith.core.engine .AugmentationManager" )
73+ @patch ("ocrsmith.core.engine .FontManager" )
74+ @patch ("ocrsmith.core.engine .TextDataManager" )
7575class TestOCRSmithEngine :
7676 """Tests for the main OCRSmithEngine class with all dependencies mocked."""
7777
Original file line number Diff line number Diff line change 33import pytest
44
55from ocrsmith .config .schema import AppConfig
6- from ocrsmith .core .OCRSmithEngine import OCRSmithEngine
6+ from ocrsmith .core .engine import OCRSmithEngine
77
88
99@pytest .fixture
You can’t perform that action at this time.
0 commit comments