diff --git a/ipfsspec/__init__.py b/ipfsspec/__init__.py index f77cc28..8999994 100644 --- a/ipfsspec/__init__.py +++ b/ipfsspec/__init__.py @@ -1,12 +1,8 @@ from .core import IPFSFileSystem from .async_ipfs import AsyncIPFSFileSystem -from fsspec import register_implementation from ._version import get_versions __version__ = get_versions()['version'] del get_versions -# register_implementation(IPFSFileSystem.protocol, IPFSFileSystem) -register_implementation(AsyncIPFSFileSystem.protocol, AsyncIPFSFileSystem) - __all__ = ["__version__", "IPFSFileSystem", "AsyncIPFSFileSystem"] diff --git a/test/test_async.py b/test/test_async.py index c5711df..c5f4ed0 100644 --- a/test/test_async.py +++ b/test/test_async.py @@ -1,4 +1,5 @@ import pytest +import pytest_asyncio from ipfsspec.async_ipfs import AsyncIPFSGateway, MultiGateway, AsyncIPFSFileSystem import aiohttp @@ -7,7 +8,7 @@ TEST_FILENAMES = ["default", "multi", "raw", "raw_multi", "write"] -@pytest.fixture +@pytest_asyncio.fixture async def session(): async with aiohttp.ClientSession() as session: yield session