Tests for: - async_web_fetcher: URL handling, media extraction, crawl modes, scoring - domain_vault: VaultManager, HTML/Media/Linkpeek vaults - screenshot: ScreenshotCapture configuration and availability - storage: ImageVault with MD5 deduplication 185 tests total, all passing.
28 lines
613 B
Python
28 lines
613 B
Python
"""
|
|
Pytest configuration for neopig tests.
|
|
Configures pytest-asyncio for async test support.
|
|
"""
|
|
|
|
import pytest
|
|
import sys
|
|
import os
|
|
|
|
# Add project root to path
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
|
|
|
# Configure pytest-asyncio to use auto mode
|
|
pytest_plugins = ('pytest_asyncio',)
|
|
|
|
|
|
def pytest_configure(config):
|
|
"""Configure pytest-asyncio mode."""
|
|
config.addinivalue_line(
|
|
"markers", "asyncio: mark test as async"
|
|
)
|
|
|
|
|
|
@pytest.fixture
|
|
def event_loop_policy():
|
|
"""Use default event loop policy."""
|
|
import asyncio
|
|
return asyncio.DefaultEventLoopPolicy()
|