Fix async helpers import cycle (#311)

* Import async helpers through public interface in tests

Signed-off-by: Roger Aiudi <[email protected]>

* Removed unused import of AsyncOpenSearch in async helpers that was causing an import cycle (fixes #310)

Signed-off-by: Roger Aiudi <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Roger Aiudi <[email protected]>

* Change 2.2.1 in the changelog to Unreleased

Signed-off-by: Roger Aiudi <[email protected]>

* Separated changelog entries for 2.2.0 from 2.1.1

Signed-off-by: Roger Aiudi <[email protected]>

---------

Signed-off-by: Roger Aiudi <[email protected]>
This commit is contained in:
aiudirog
2023-03-08 15:05:06 -05:00
committed by GitHub
parent 05326ba547
commit 49ae7c76e0
3 changed files with 16 additions and 5 deletions
@@ -34,8 +34,7 @@ import asyncio
import pytest
from mock import MagicMock, patch
from opensearchpy import TransportError
from opensearchpy._async import helpers
from opensearchpy import TransportError, helpers
from opensearchpy.helpers import BulkIndexError, ScanError
pytestmark = pytest.mark.asyncio