Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test_elasticsearch/test_async/test_server/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
# specific language governing permissions and limitations
# under the License.

import pytest
import pytest_asyncio
import sniffio

import elasticsearch

from ...utils import CA_CERTS, wipe_cluster


@pytest.fixture(scope="function")
@pytest_asyncio.fixture(scope="function")
async def async_client_factory(elasticsearch_url):
kwargs = {}
if sniffio.current_async_library() == "trio":
Expand All @@ -42,7 +42,7 @@ async def async_client_factory(elasticsearch_url):
await client.close()


@pytest.fixture(scope="function")
@pytest_asyncio.fixture(scope="function")
def async_client(async_client_factory):
try:
yield async_client_factory
Expand Down