19 lines
326 B
Python
19 lines
326 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
|
|
|
|
|
|
@pytest.fixture
|
|
def anyio_backend() -> str:
|
|
return "asyncio"
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def reset_plugins_state() -> None:
|
|
import takopi.plugins as plugins
|
|
|
|
plugins.reset_plugin_state()
|