Skip to content

Commit d87be12

Browse files
committed
fix python tests
Signed-off-by: Shoham Elias <shohame@amazon.com>
1 parent 89ff4cb commit d87be12

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

python/python/tests/test_transaction.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -720,26 +720,26 @@ async def transaction_test(
720720
alpha=True,
721721
)
722722
args.append(4)
723-
if not await check_if_server_version_lt(glide_client, "7.0.0"):
724-
transaction.hset(f"{keyslot}:1", {"name": "Alice", "age": "30"})
723+
if not await check_if_server_version_lt(glide_client, "7.9.0"):
724+
transaction.hset(f"{{{keyslot}}}:1", {"name": "Alice", "age": "30"})
725725
args.append(2)
726-
transaction.hset(f"{keyslot}:2", {"name": "Bob", "age": "25"})
726+
transaction.hset(f"{{{keyslot}}}:2", {"name": "Bob", "age": "25"})
727727
args.append(2)
728728
transaction.lpush(key26, ["2", "1"])
729729
args.append(2)
730730
transaction.sort(
731731
key26,
732-
by_pattern=f"{keyslot}:*->age",
733-
get_patterns=[f"{keyslot}:*->name"],
732+
by_pattern=f"{{{keyslot}}}:*->age",
733+
get_patterns=[f"{{{keyslot}}}:*->name"],
734734
order=OrderBy.ASC,
735735
alpha=True,
736736
)
737737
args.append([b"Bob", b"Alice"])
738738
transaction.sort_store(
739739
key26,
740740
key27,
741-
by_pattern=f"{keyslot}:*->age",
742-
get_patterns=[f"{keyslot}:*->name"],
741+
by_pattern=f"{{{keyslot}}}:*->age",
742+
get_patterns=[f"{{{keyslot}}}:*->name"],
743743
order=OrderBy.ASC,
744744
alpha=True,
745745
)

0 commit comments

Comments
 (0)