Skip to content

Commit

Permalink
change to asyncio supporting fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Apr 24, 2023
1 parent e62908d commit bfdb4d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_async.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest
import pytest_asyncio
from ipfsspec.async_ipfs import AsyncIPFSGateway, MultiGateway, AsyncIPFSFileSystem
import aiohttp

Expand All @@ -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
Expand Down

0 comments on commit bfdb4d8

Please sign in to comment.