fix(tests): Add src. prefix to module imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[ai]
|
||||
provider = "gemini_cli"
|
||||
model = "gemini-2.0-flash"
|
||||
provider = "gemini"
|
||||
model = "gemini-2.5-flash-lite"
|
||||
temperature = 0.0
|
||||
max_tokens = 8192
|
||||
history_trunc_limit = 8000
|
||||
|
||||
@@ -8,5 +8,5 @@ active = "main"
|
||||
|
||||
[discussions.main]
|
||||
git_commit = ""
|
||||
last_updated = "2026-03-05T14:42:31"
|
||||
last_updated = "2026-03-05T16:40:05"
|
||||
history = []
|
||||
|
||||
@@ -4,7 +4,7 @@ import os
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
# This import is expected to fail with ImportError until log_registry.py is created.
|
||||
from log_registry import LogRegistry
|
||||
from src.log_registry import LogRegistry
|
||||
|
||||
class TestLogRegistry(unittest.TestCase):
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Any
|
||||
from pathlib import Path
|
||||
from datetime import datetime, timedelta
|
||||
import session_logger
|
||||
from log_registry import LogRegistry
|
||||
from src.log_registry import LogRegistry
|
||||
from log_pruner import LogPruner
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@@ -2,8 +2,8 @@ import unittest
|
||||
from typing import Any
|
||||
from unittest.mock import patch
|
||||
import json
|
||||
import orchestrator_pm
|
||||
import mma_prompts
|
||||
from src import orchestrator_pm
|
||||
from src import mma_prompts
|
||||
|
||||
class TestOrchestratorPM(unittest.TestCase):
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from unittest.mock import patch, MagicMock
|
||||
import shutil
|
||||
import json
|
||||
from pathlib import Path
|
||||
import orchestrator_pm
|
||||
from src import orchestrator_pm
|
||||
|
||||
class TestOrchestratorPMHistory(unittest.TestCase):
|
||||
def setUp(self) -> None:
|
||||
|
||||
@@ -3,7 +3,7 @@ from datetime import datetime
|
||||
# Import the real models
|
||||
from src.models import TrackState, Metadata, Ticket
|
||||
# Import the persistence functions from project_manager
|
||||
from project_manager import save_track_state, load_track_state
|
||||
from src.project_manager import save_track_state, load_track_state
|
||||
|
||||
def test_track_state_persistence(tmp_path) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user