Skip to content

Commit

Permalink
add misssing files
Browse files Browse the repository at this point in the history
Signed-off-by: Shoham Elias <shohame@amazon.com>
  • Loading branch information
shohamazon committed Dec 18, 2024
1 parent 03ea9e9 commit 3e085c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions python/python/glide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
TTransaction,
)
from glide.config import (
AdvancedGlideClientConfiguration,
AdvancedGlideClusterClientConfiguration,
BackoffStrategy,
GlideClientConfiguration,
GlideClusterClientConfiguration,
Expand Down Expand Up @@ -176,6 +178,8 @@
"TGlideClient",
"TTransaction",
# Config
"AdvancedGlideClientConfiguration",
"AdvancedGlideClusterClientConfiguration",
"GlideClientConfiguration",
"GlideClusterClientConfiguration",
"BackoffStrategy",
Expand Down
6 changes: 4 additions & 2 deletions python/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import pytest
from glide.config import (
AdvancedGlideClientConfiguration,
AdvancedGlideClusterClientConfiguration,
GlideClientConfiguration,
GlideClusterClientConfiguration,
NodeAddress,
Expand Down Expand Up @@ -261,7 +263,7 @@ async def create_client(
assert database_id == 0
k = min(3, len(pytest.valkey_cluster.nodes_addr))
seed_nodes = random.sample(pytest.valkey_cluster.nodes_addr, k=k)
cluster_config = GlideClusterClientConfiguration(
cluster_config = AdvancedGlideClusterClientConfiguration(
addresses=seed_nodes if addresses is None else addresses,
use_tls=use_tls,
credentials=credentials,
Expand All @@ -277,7 +279,7 @@ async def create_client(
return await GlideClusterClient.create(cluster_config)
else:
assert type(pytest.standalone_cluster) is ValkeyCluster
config = GlideClientConfiguration(
config = AdvancedGlideClientConfiguration(
addresses=(
pytest.standalone_cluster.nodes_addr if addresses is None else addresses
),
Expand Down

0 comments on commit 3e085c1

Please sign in to comment.