Dropped support for python 3.6, 3.7 and added support for python 3.12 (#717)

Signed-off-by: saimedhi <[email protected]>
This commit is contained in:
Sai Medhini Reddy Maryada
2024-04-06 11:18:47 -04:00
committed by GitHub
parent 8a00963d83
commit ba715b9d3f
25 changed files with 260 additions and 425 deletions
@@ -25,7 +25,7 @@
# under the License.
from unittest import IsolatedAsyncioTestCase # type: ignore
from unittest import IsolatedAsyncioTestCase
from opensearchpy._async.helpers.test import get_test_client
from opensearchpy.connection.async_connections import add_connection
@@ -33,7 +33,7 @@ from opensearchpy.connection.async_connections import add_connection
from ...utils import wipe_cluster
class AsyncOpenSearchTestCase(IsolatedAsyncioTestCase): # type: ignore
class AsyncOpenSearchTestCase(IsolatedAsyncioTestCase):
async def asyncSetUp(
self,
) -> None:
@@ -10,7 +10,7 @@
from __future__ import unicode_literals
from unittest import IsolatedAsyncioTestCase # type: ignore
from unittest import IsolatedAsyncioTestCase
import pytest
from _pytest.mark.structures import MarkDecorator
@@ -22,7 +22,7 @@ from opensearchpy.exceptions import NotFoundError
pytestmark: MarkDecorator = pytest.mark.asyncio
class TestSecurityPlugin(IsolatedAsyncioTestCase): # type: ignore
class TestSecurityPlugin(IsolatedAsyncioTestCase):
ROLE_NAME = "test-role"
ROLE_CONTENT = {
"cluster_permissions": ["cluster_monitor"],