@@ -1572,12 +1572,12 @@ async def test_query_timeout(decoded_r: redis.Redis):
1572
1572
1573
1573
@pytest .mark .redismod
1574
1574
@skip_if_resp_version (3 )
1575
- async def test_binary_and_text_fields (client ):
1575
+ async def test_binary_and_text_fields (decoded_r : redis . Redis ):
1576
1576
fake_vec = np .array ([0.1 , 0.2 , 0.3 , 0.4 ], dtype = np .float32 )
1577
1577
1578
1578
index_name = "mixed_index"
1579
1579
mixed_data = {"first_name" : "🐍python" , "vector_emb" : fake_vec .tobytes ()}
1580
- await client .hset (f"{ index_name } :1" , mapping = mixed_data )
1580
+ await decoded_r .hset (f"{ index_name } :1" , mapping = mixed_data )
1581
1581
1582
1582
schema = (
1583
1583
TagField ("first_name" ),
@@ -1592,7 +1592,7 @@ async def test_binary_and_text_fields(client):
1592
1592
),
1593
1593
)
1594
1594
1595
- await client .ft (index_name ).create_index (
1595
+ await decoded_r .ft (index_name ).create_index (
1596
1596
fields = schema ,
1597
1597
definition = IndexDefinition (
1598
1598
prefix = [f"{ index_name } :" ], index_type = IndexType .HASH
@@ -1604,7 +1604,7 @@ async def test_binary_and_text_fields(client):
1604
1604
.return_field ("vector_emb" , decode_field = False )
1605
1605
.return_field ("first_name" )
1606
1606
)
1607
- result = await client .ft (index_name ).search (query = query , query_params = {})
1607
+ result = await decoded_r .ft (index_name ).search (query = query , query_params = {})
1608
1608
docs = result .docs
1609
1609
1610
1610
decoded_vec_from_search_results = np .frombuffer (
0 commit comments