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:
@@ -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 = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user