refactor: consolidate nfo modules into src/server/nfo/
Move nfo_models, tmdb_client, nfo_generator, nfo_mapper from scattered temp directories into single src/server/nfo/ package. Update all imports to reflect new structure. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -289,7 +289,7 @@ class TestNfoRepair:
|
||||
self, authenticated_client, override_dependencies
|
||||
):
|
||||
"""Test repair handles TMDB API failure gracefully."""
|
||||
from src.server.services_nfo_temp.tmdb_client import TMDBAPIError
|
||||
from src.server.nfo.tmdb_client import TMDBAPIError
|
||||
|
||||
with patch("src.server.api.nfo.Path") as MockPath:
|
||||
mock_path = Mock()
|
||||
|
||||
@@ -9,7 +9,7 @@ from unittest.mock import AsyncMock, MagicMock, patch
|
||||
import aiohttp
|
||||
import pytest
|
||||
|
||||
from src.server.services_nfo_temp.tmdb_client import TMDBAPIError, TMDBClient
|
||||
from src.server.nfo.tmdb_client import TMDBAPIError, TMDBClient
|
||||
|
||||
|
||||
def _make_ctx(response):
|
||||
|
||||
@@ -297,7 +297,7 @@ class TestTMDBAPIBatchingOptimization:
|
||||
|
||||
# Simulate rate limit on 5th call
|
||||
if call_count == 5:
|
||||
from src.server.services_nfo_temp.tmdb_client import TMDBAPIError
|
||||
from src.server.nfo.tmdb_client import TMDBAPIError
|
||||
raise TMDBAPIError("Rate limit exceeded")
|
||||
|
||||
await asyncio.sleep(0.01)
|
||||
|
||||
@@ -6,7 +6,7 @@ import aiohttp
|
||||
import pytest
|
||||
from aiohttp import ClientResponseError, ClientSession
|
||||
|
||||
from src.server.services_nfo_temp.tmdb_client import TMDBAPIError, TMDBClient
|
||||
from src.server.nfo.tmdb_client import TMDBAPIError, TMDBClient
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@@ -9,7 +9,7 @@ from unittest.mock import AsyncMock, MagicMock, patch
|
||||
import aiohttp
|
||||
import pytest
|
||||
|
||||
from src.server.services_nfo_temp.tmdb_client import TMDBAPIError, TMDBClient
|
||||
from src.server.nfo.tmdb_client import TMDBAPIError, TMDBClient
|
||||
|
||||
|
||||
def _make_ctx(response):
|
||||
|
||||
Reference in New Issue
Block a user