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:
2026-06-04 21:17:20 +02:00
parent 5526ab884a
commit 830f6b4c93
12 changed files with 1223 additions and 8 deletions

View File

@@ -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()

View File

@@ -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):

View File

@@ -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)

View File

@@ -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

View File

@@ -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):