File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/functional/idempotency/persistence Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,15 +245,15 @@ def test_redis_connection_conn_error():
245
245
# when RedisCachePersistenceLayer is init with a bad host
246
246
# then should raise IdempotencyRedisConnectionError
247
247
with pytest .raises (IdempotencyRedisConnectionError ):
248
- layer = RedisCachePersistenceLayer (host = redis_badhost )
248
+ RedisCachePersistenceLayer (host = redis_badhost )
249
249
250
250
251
251
@mock .patch ("aws_lambda_powertools.utilities.idempotency.persistence.redis.redis" , MockRedis ())
252
252
def test_redis_connection_conf_error ():
253
253
# when RedisCachePersistenceLayer is init with a not_supported_mode in mode param
254
254
# then should raise IdempotencyRedisClientConfigError
255
255
with pytest .raises (IdempotencyRedisClientConfigError ):
256
- layer = RedisCachePersistenceLayer (mode = "not_supported_mode" )
256
+ RedisCachePersistenceLayer (mode = "not_supported_mode" )
257
257
258
258
259
259
@mock .patch ("aws_lambda_powertools.utilities.idempotency.persistence.redis.redis" , MockRedis ())
@@ -560,7 +560,7 @@ def test_redis_connection_get_kwargs_error():
560
560
# then should raise IdempotencyRedisClientConfigError
561
561
562
562
with pytest .raises (IdempotencyRedisClientConfigError ):
563
- layer = RedisCachePersistenceLayer (host = "testhost" )
563
+ RedisCachePersistenceLayer (host = "testhost" )
564
564
565
565
566
566
def test_redis_orphan_record_race_condition (lambda_context ):
You can’t perform that action at this time.
0 commit comments