27 lines
564 B
Python
Raw Normal View History

2025-10-03 02:33:26 +02:00
"""
Pytest configuration for WebDAV server tests
"""
import pytest
import asyncio
# Configure pytest-asyncio
def pytest_configure(config):
"""Configure pytest with custom settings"""
config.addinivalue_line(
"markers", "asyncio: mark test as an asyncio test"
)
@pytest.fixture(scope="session")
def event_loop():
"""Create an instance of the default event loop for the test session."""
loop = asyncio.get_event_loop_policy().new_event_loop()
yield loop
loop.close()
# Set asyncio mode
pytest_plugins = ('pytest_asyncio',)