@@ -360,7 +360,7 @@ def test_deprecated_dtype_argument(routes, redis_url):
360
360
)
361
361
362
362
363
- def test_deprecated_distance_threshold_argument (routes , redis_url ):
363
+ def test_deprecated_distance_threshold_argument (semantic_router , routes , redis_url ):
364
364
redis_version = semantic_router ._index .client .info ()["redis_version" ]
365
365
if not compare_versions (redis_version , "7.0.0" ):
366
366
pytest .skip ("Not using a late enough version of Redis" )
@@ -375,7 +375,9 @@ def test_deprecated_distance_threshold_argument(routes, redis_url):
375
375
router ("hello" , distance_threshold = 0.3 )
376
376
377
377
378
- def test_routes_different_distance_thresholds_get_two (routes , redis_url ):
378
+ def test_routes_different_distance_thresholds_get_two (
379
+ semantic_router , routes , redis_url
380
+ ):
379
381
redis_version = semantic_router ._index .client .info ()["redis_version" ]
380
382
if not compare_versions (redis_version , "7.0.0" ):
381
383
pytest .skip ("Not using a late enough version of Redis" )
@@ -395,7 +397,9 @@ def test_routes_different_distance_thresholds_get_two(routes, redis_url):
395
397
assert matches [1 ].name == "farewell"
396
398
397
399
398
- def test_routes_different_distance_thresholds_get_one (routes , redis_url ):
400
+ def test_routes_different_distance_thresholds_get_one (
401
+ semantic_router , routes , redis_url
402
+ ):
399
403
redis_version = semantic_router ._index .client .info ()["redis_version" ]
400
404
if not compare_versions (redis_version , "7.0.0" ):
401
405
pytest .skip ("Not using a late enough version of Redis" )
0 commit comments