Format updates to instructions and test file

- Improve markdown formatting in instructions.md
- Reorder imports in test_background_loader_session.py per PEP8
This commit is contained in:
2026-01-19 20:06:03 +01:00
parent 7d95c180a9
commit d6a82f4329
2 changed files with 11 additions and 5 deletions

View File

@@ -4,14 +4,15 @@ Unit tests for BackgroundLoaderService database session handling.
This module tests that the background loader service properly uses async context
managers for database sessions, preventing TypeError with async for.
"""
import pytest
from unittest.mock import AsyncMock, MagicMock, patch
from datetime import datetime, timezone
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from src.server.services.background_loader_service import (
BackgroundLoaderService,
SeriesLoadingTask,
LoadingStatus,
SeriesLoadingTask,
)
@@ -277,7 +278,7 @@ async def test_async_context_manager_usage():
"""
from contextlib import asynccontextmanager
from typing import AsyncGenerator
# Create a test async context manager
call_log = []