pig.py/tests/conftest.py
Russell Ballestrini 1847a2fee6 Add comprehensive unit tests for async modules
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.
2025-12-22 20:40:58 -05:00

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