Skip to content

Commit 1ac6ab5

Browse files
committed
Merge branch 'feat/domain-model' into feat/rendering-v2
2 parents 18ace94 + bfa0d3e commit 1ac6ab5

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/ocrsmith/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from .augmentation import NoiseAugmentation
22
from .AugmentationManager import AugmentationManager
33
from .BackgroundManager import BackgroundManager
4+
from .engine import OCRSmithEngine
45
from .FontManager import FontManager
5-
from .OCRSmithEngine import OCRSmithEngine
66
from .TextPlacementManager import TextPlacementManager
77
from .TextRenderingManager import TextRenderingManager

src/ocrsmith/core/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import argparse
22

33
from ocrsmith.config.loader import load_config
4-
from ocrsmith.core.OCRSmithEngine import OCRSmithEngine
4+
from ocrsmith.core.engine import OCRSmithEngine
55

66

77
def parse_overrides(pairs):

tests/test_engine.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# --- Import all necessary classes ---
1111
from ocrsmith.config.schema import AppConfig
12-
from ocrsmith.core.OCRSmithEngine import OCRSmithEngine
12+
from ocrsmith.core.engine import OCRSmithEngine
1313
from 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")
7575
class TestOCRSmithEngine:
7676
"""Tests for the main OCRSmithEngine class with all dependencies mocked."""
7777

tests/test_multiprocessing_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from ocrsmith.config.schema import AppConfig
6-
from ocrsmith.core.OCRSmithEngine import OCRSmithEngine
6+
from ocrsmith.core.engine import OCRSmithEngine
77

88

99
@pytest.fixture

0 commit comments

Comments
 (0)