mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-05-18 15:29:31 +00:00
20 lines
419 B
Python
20 lines
419 B
Python
"""Pytest configuration and fixtures."""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
# Add src directory to path for imports
|
|
src_path = Path(__file__).parent.parent / "src"
|
|
if str(src_path) not in sys.path:
|
|
sys.path.insert(0, str(src_path))
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def event_loop_policy():
|
|
"""Use default event loop policy."""
|
|
import asyncio
|
|
|
|
return asyncio.DefaultEventLoopPolicy()
|