re-structure
This commit is contained in:
@@ -10,8 +10,8 @@ from fastapi import FastAPI
|
||||
from fastapi.testclient import TestClient
|
||||
import numpy as np
|
||||
|
||||
from inference.web.api.v1.admin.augmentation import create_augmentation_router
|
||||
from inference.web.core.auth import (
|
||||
from backend.web.api.v1.admin.augmentation import create_augmentation_router
|
||||
from backend.web.core.auth import (
|
||||
validate_admin_token,
|
||||
get_document_repository,
|
||||
get_dataset_repository,
|
||||
@@ -175,7 +175,7 @@ class TestAugmentationPreviewEndpoint:
|
||||
fake_image = np.random.randint(0, 255, (100, 100, 3), dtype=np.uint8)
|
||||
|
||||
with patch(
|
||||
"inference.web.services.augmentation_service.AugmentationService._load_document_page"
|
||||
"backend.web.services.augmentation_service.AugmentationService._load_document_page"
|
||||
) as mock_load:
|
||||
mock_load.return_value = fake_image
|
||||
|
||||
@@ -251,7 +251,7 @@ class TestAugmentationPreviewConfigEndpoint:
|
||||
fake_image = np.random.randint(0, 255, (100, 100, 3), dtype=np.uint8)
|
||||
|
||||
with patch(
|
||||
"inference.web.services.augmentation_service.AugmentationService._load_document_page"
|
||||
"backend.web.services.augmentation_service.AugmentationService._load_document_page"
|
||||
) as mock_load:
|
||||
mock_load.return_value = fake_image
|
||||
|
||||
|
||||
Reference in New Issue
Block a user