Cleanup: Delete ALL 242 shims, update ALL consumer imports
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 41s
CI / test-go-edu-search (push) Successful in 32s
CI / test-python-klausur (push) Failing after 2m41s
CI / test-python-agent-core (push) Successful in 34s
CI / test-nodejs-website (push) Successful in 39s
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 41s
CI / test-go-edu-search (push) Successful in 32s
CI / test-python-klausur (push) Failing after 2m41s
CI / test-python-agent-core (push) Successful in 34s
CI / test-nodejs-website (push) Successful in 39s
klausur-service: 183 shims deleted, 26 test files + 8 source files updated backend-lehrer: 59 shims deleted, main.py + 8 source files updated All imports now use the new package paths directly. Zero shims remaining in the entire codebase. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,7 @@ from unittest.mock import AsyncMock, MagicMock, patch, PropertyMock
|
||||
from dataclasses import asdict
|
||||
|
||||
# Import module under test
|
||||
from cv_vocab_pipeline import (
|
||||
from ocr.cv_pipeline import (
|
||||
ColumnGeometry,
|
||||
DocumentTypeResult,
|
||||
PageRegion,
|
||||
@@ -1408,7 +1408,7 @@ class TestCellsToVocabEntriesPageRef:
|
||||
|
||||
def test_page_ref_mapped_to_source_page(self):
|
||||
"""Cell with col_type='page_ref' → source_page field populated."""
|
||||
from cv_vocab_pipeline import _cells_to_vocab_entries
|
||||
from ocr.cv_pipeline import _cells_to_vocab_entries
|
||||
|
||||
cells = [
|
||||
{
|
||||
@@ -1450,7 +1450,7 @@ class TestCellsToVocabEntriesPageRef:
|
||||
|
||||
def test_no_page_ref_defaults_empty(self):
|
||||
"""Without page_ref cell, source_page defaults to empty string."""
|
||||
from cv_vocab_pipeline import _cells_to_vocab_entries
|
||||
from ocr.cv_pipeline import _cells_to_vocab_entries
|
||||
|
||||
cells = [
|
||||
{
|
||||
@@ -1472,7 +1472,7 @@ class TestCellsToVocabEntriesPageRef:
|
||||
|
||||
def test_marker_only_row_included(self):
|
||||
"""Row with only a marker (no english/german/example) is kept."""
|
||||
from cv_vocab_pipeline import _cells_to_vocab_entries
|
||||
from ocr.cv_pipeline import _cells_to_vocab_entries
|
||||
|
||||
cells = [
|
||||
# Row 0: has english + marker
|
||||
@@ -1543,7 +1543,7 @@ class TestCellsToVocabEntriesPageRef:
|
||||
|
||||
def test_page_ref_only_row_included(self):
|
||||
"""Row with only source_page text is kept (no english/german/example)."""
|
||||
from cv_vocab_pipeline import _cells_to_vocab_entries
|
||||
from ocr.cv_pipeline import _cells_to_vocab_entries
|
||||
|
||||
cells = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user