re-structure
This commit is contained in:
@@ -9,10 +9,10 @@ from uuid import UUID
|
||||
|
||||
from fastapi import HTTPException
|
||||
|
||||
from inference.data.admin_models import AdminAnnotation, AdminDocument
|
||||
from backend.data.admin_models import AdminAnnotation, AdminDocument
|
||||
from shared.fields import FIELD_CLASSES
|
||||
from inference.web.api.v1.admin.annotations import _validate_uuid, create_annotation_router
|
||||
from inference.web.schemas.admin import (
|
||||
from backend.web.api.v1.admin.annotations import _validate_uuid, create_annotation_router
|
||||
from backend.web.schemas.admin import (
|
||||
AnnotationCreate,
|
||||
AnnotationUpdate,
|
||||
AutoLabelRequest,
|
||||
@@ -234,10 +234,10 @@ class TestAutoLabelFilePathResolution:
|
||||
mock_storage.get_raw_pdf_local_path.return_value = mock_path
|
||||
|
||||
with patch(
|
||||
"inference.web.services.storage_helpers.get_storage_helper",
|
||||
"backend.web.services.storage_helpers.get_storage_helper",
|
||||
return_value=mock_storage,
|
||||
):
|
||||
from inference.web.services.storage_helpers import get_storage_helper
|
||||
from backend.web.services.storage_helpers import get_storage_helper
|
||||
|
||||
storage = get_storage_helper()
|
||||
result = storage.get_raw_pdf_local_path("test.pdf")
|
||||
|
||||
Reference in New Issue
Block a user