mirror of
https://github.com/ollama/ollama-python.git
synced 2026-05-01 19:58:17 +08:00
use anyio instead of asyncio
This commit is contained in:
parent
8ac47707d8
commit
39d515fd06
@ -1355,7 +1355,7 @@ def test_client_close():
|
|||||||
assert client._client.is_closed
|
assert client._client.is_closed
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.anyio
|
||||||
async def test_async_client_close():
|
async def test_async_client_close():
|
||||||
client = AsyncClient()
|
client = AsyncClient()
|
||||||
await client.close()
|
await client.close()
|
||||||
@ -1370,7 +1370,7 @@ def test_client_context_manager():
|
|||||||
assert client._client.is_closed
|
assert client._client.is_closed
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.anyio
|
||||||
async def test_async_client_context_manager():
|
async def test_async_client_context_manager():
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
assert isinstance(client, AsyncClient)
|
assert isinstance(client, AsyncClient)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user