mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 15:28:44 +00:00
Limit anyio tests to installed backends
This commit is contained in:
@@ -1,7 +1,15 @@
|
|||||||
|
import importlib.util
|
||||||
import logging
|
import logging
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(
|
||||||
|
params=["asyncio"] + (["trio"] if importlib.util.find_spec("trio") else [])
|
||||||
|
)
|
||||||
|
def anyio_backend(request):
|
||||||
|
return request.param
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def mute_logging():
|
def mute_logging():
|
||||||
logging.getLogger().setLevel(logging.WARNING)
|
logging.getLogger().setLevel(logging.WARNING)
|
||||||
|
Reference in New Issue
Block a user