We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019e747 commit 37f4c8dCopy full SHA for 37f4c8d
test_elasticsearch/test_async/test_server/conftest.py
@@ -19,11 +19,12 @@
19
import sniffio
20
21
import elasticsearch
22
+import pytest_asyncio
23
24
from ...utils import CA_CERTS, wipe_cluster
25
26
-@pytest.fixture(scope="function")
27
+@pytest_asyncio.fixture(scope="function")
28
async def async_client_factory(elasticsearch_url):
29
kwargs = {}
30
if sniffio.current_async_library() == "trio":
@@ -42,7 +43,7 @@ async def async_client_factory(elasticsearch_url):
42
43
await client.close()
44
45
46
47
def async_client(async_client_factory):
48
try:
49
yield async_client_factory
0 commit comments