Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamazon committed Jun 26, 2024
1 parent 318596f commit 5cf6434
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
3 changes: 1 addition & 2 deletions python/python/glide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
RequestError,
TimeoutError,
)
from glide.glide_client import GlideClient, GlideClusterClient
from glide.logger import Level as LogLevel
from glide.logger import Logger
from glide.routes import (
Expand All @@ -92,8 +93,6 @@
SlotType,
)

from python.python.glide.glide_client import GlideClient, GlideClusterClient

from .glide import Script

__all__ = [
Expand Down
3 changes: 1 addition & 2 deletions python/python/glide/async_commands/redis_modules/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@

from glide.async_commands.core import ConditionalChange
from glide.constants import TOK, TJsonResponse
from glide.glide_client import TGlideClient
from glide.protobuf.redis_request_pb2 import RequestType

from python.python.glide.glide_client import TGlideClient


class JsonGetOptions:
"""
Expand Down
7 changes: 1 addition & 6 deletions python/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@
ProtocolVersion,
RedisCredentials,
)
from glide.glide_client import GlideClient, GlideClusterClient, TGlideClient
from glide.logger import Level as logLevel
from glide.logger import Logger
from tests.utils.cluster import RedisCluster

from python.python.glide.glide_client import (
GlideClient,
GlideClusterClient,
TGlideClient,
)

DEFAULT_HOST = "localhost"
DEFAULT_PORT = 6379
DEFAULT_TEST_LOG_LEVEL = logLevel.WARN
Expand Down
7 changes: 1 addition & 6 deletions python/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
RedisCredentials,
)
from glide.constants import OK, TResult
from glide.glide_client import GlideClient, GlideClusterClient, TGlideClient
from glide.routes import (
AllNodes,
AllPrimaries,
Expand All @@ -93,12 +94,6 @@
parse_info_response,
)

from python.python.glide.glide_client import (
GlideClient,
GlideClusterClient,
TGlideClient,
)


@pytest.mark.asyncio
class TestGlideClients:
Expand Down
7 changes: 1 addition & 6 deletions python/python/tests/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,10 @@
)
from glide.config import ProtocolVersion
from glide.constants import OK, TResult
from glide.glide_client import GlideClient, GlideClusterClient, TGlideClient
from tests.conftest import create_client
from tests.utils.utils import check_if_server_version_lt, get_random_string

from python.python.glide.glide_client import (
GlideClient,
GlideClusterClient,
TGlideClient,
)


async def transaction_test(
transaction: Union[Transaction, ClusterTransaction],
Expand Down
3 changes: 1 addition & 2 deletions python/python/tests/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

from glide.async_commands.core import InfoSection
from glide.constants import TResult
from glide.glide_client import TGlideClient
from packaging import version

from python.python.glide.glide_client import TGlideClient

T = TypeVar("T")


Expand Down

0 comments on commit 5cf6434

Please sign in to comment.