Skip to content

Commit 1c638b3

Browse files
change import path in test files
1 parent c40ac40 commit 1c638b3

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/backend/tests/auth/test_auth_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_get_tenantid_with_empty_b64():
4242
assert tenant_id == ""
4343

4444

45-
@patch("auth.auth_utils.logging.getLogger", return_value=Mock())
45+
@patch("src.backend.auth.auth_utils.logging.getLogger", return_value=Mock())
4646
def test_get_tenantid_with_invalid_b64(mock_logger):
4747
"""Test get_tenantid with an invalid base64-encoded string."""
4848
invalid_b64 = "invalid-base64"

src/backend/tests/middleware/test_health_check.py

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

33
from fastapi import FastAPI
4-
from middleware.health_check import HealthCheckMiddleware, HealthCheckResult
4+
from src.backend.middleware.health_check import HealthCheckMiddleware, HealthCheckResult
55
from starlette.testclient import TestClient
66

77

src/backend/tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# Import the current config objects/functions under the mocked env
3535
with patch.dict(os.environ, MOCK_ENV_VARS, clear=False):
3636
# New codebase: config lives in app_config/config_kernel
37-
from src.backend.app_config import config as app_config
37+
from src.backend.common.config.app_config import config as app_config
3838

3939

4040
# Provide thin wrappers so the old test names still work

src/backend/tests/test_otlp_tracing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
import sys
33
from unittest.mock import MagicMock, patch
44

5-
from common.utils.otlp_tracing import (
5+
from src.backend.common.utils.otlp_tracing import (
66
configure_oltp_tracing,
77
) # Import directly since it's in backend
88

99
# Add the backend directory to the Python path
1010
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
1111

1212

13-
@patch("otlp_tracing.TracerProvider")
14-
@patch("otlp_tracing.OTLPSpanExporter")
15-
@patch("otlp_tracing.Resource")
13+
@patch("src.backend.common.utils.otlp_tracing.TracerProvider")
14+
@patch("src.backend.common.utils.otlp_tracing.OTLPSpanExporter")
15+
@patch("src.backend.common.utils.otlp_tracing.Resource")
1616
def test_configure_oltp_tracing(
1717
mock_resource,
1818
mock_otlp_exporter,

src/tests/mcp_server/test_factory.py

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

55
import pytest
6-
from core.factory import MCPToolFactory, Domain, MCPToolBase
6+
from src.mcp_server.core.factory import MCPToolFactory, Domain, MCPToolBase
77

88

99
class TestMCPToolFactory:

src/tests/mcp_server/test_hr_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"""
44

55
import pytest
6-
from services.hr_service import HRService
7-
from core.factory import Domain
6+
from src.mcp_server.services.hr_service import HRService
7+
from src.mcp_server.core.factory import Domain
88

99

1010
class TestHRService:

src/tests/mcp_server/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66
from datetime import datetime
7-
from utils.date_utils import (
7+
from src.mcp_server.utils.date_utils import (
88
format_date_for_user,
99
get_current_timestamp,
1010
format_timestamp_for_display,

0 commit comments

Comments
 (0)