File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test_elasticsearch/test_async/test_server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515# specific language governing permissions and limitations
1616# under the License.
1717
18- import pytest
18+ import pytest_asyncio
1919import sniffio
2020
2121import elasticsearch
2222
2323from ...utils import CA_CERTS , wipe_cluster
2424
2525
26- @pytest .fixture (scope = "function" )
26+ @pytest_asyncio .fixture (scope = "function" )
2727async def async_client_factory (elasticsearch_url ):
2828 kwargs = {}
2929 if sniffio .current_async_library () == "trio" :
@@ -42,7 +42,7 @@ async def async_client_factory(elasticsearch_url):
4242 await client .close ()
4343
4444
45- @pytest .fixture (scope = "function" )
45+ @pytest_asyncio .fixture (scope = "function" )
4646def async_client (async_client_factory ):
4747 try :
4848 yield async_client_factory
You can’t perform that action at this time.
0 commit comments