@@ -537,7 +537,7 @@ def test_auth_pool_with_credential_provider(self, r_entra: redis.Redis):
537
537
assert r_entra .ping () is True
538
538
539
539
@pytest .mark .parametrize (
540
- "r " ,
540
+ "r_entra " ,
541
541
[
542
542
{
543
543
"cred_provider_class" : EntraIdCredentialsProvider ,
@@ -553,16 +553,16 @@ def test_auth_pool_with_credential_provider(self, r_entra: redis.Redis):
553
553
)
554
554
@pytest .mark .onlynoncluster
555
555
@pytest .mark .cp_integration
556
- def test_auth_pipeline_with_credential_provider (self , r : redis .Redis ):
557
- pipe = r .pipeline ()
556
+ def test_auth_pipeline_with_credential_provider (self , r_entra : redis .Redis ):
557
+ pipe = r_entra .pipeline ()
558
558
559
559
pipe .set ('key' , 'value' )
560
560
pipe .get ('key' )
561
561
562
562
assert pipe .execute () == [True , b'value' ]
563
563
564
564
@pytest .mark .parametrize (
565
- "r " ,
565
+ "r_entra " ,
566
566
[
567
567
{
568
568
"cred_provider_class" : EntraIdCredentialsProvider ,
@@ -572,12 +572,12 @@ def test_auth_pipeline_with_credential_provider(self, r: redis.Redis):
572
572
)
573
573
@pytest .mark .onlynoncluster
574
574
@pytest .mark .cp_integration
575
- def test_auth_pubsub_with_credential_provider (self , r : redis .Redis ):
576
- p = r .pubsub ()
575
+ def test_auth_pubsub_with_credential_provider (self , r_entra : redis .Redis ):
576
+ p = r_entra .pubsub ()
577
577
p .subscribe ("entraid" )
578
578
579
- r .publish ('entraid' , 'test' )
580
- r .publish ('entraid' , 'test' )
579
+ r_entra .publish ('entraid' , 'test' )
580
+ r_entra .publish ('entraid' , 'test' )
581
581
582
582
assert p .get_message ()['type' ] == 'subscribe'
583
583
assert p .get_message ()['type' ] == 'message'
@@ -587,7 +587,7 @@ def test_auth_pubsub_with_credential_provider(self, r: redis.Redis):
587
587
@pytest .mark .cp_integration
588
588
class TestClusterEntraIdCredentialsProvider :
589
589
@pytest .mark .parametrize (
590
- "r " ,
590
+ "r_entra " ,
591
591
[
592
592
{
593
593
"cred_provider_class" : EntraIdCredentialsProvider ,
@@ -603,5 +603,5 @@ class TestClusterEntraIdCredentialsProvider:
603
603
)
604
604
@pytest .mark .onlycluster
605
605
@pytest .mark .cp_integration
606
- def test_auth_pool_with_credential_provider (self , r : redis .Redis ):
607
- assert r .ping () is True
606
+ def test_auth_pool_with_credential_provider (self , r_entra : redis .Redis ):
607
+ assert r_entra .ping () is True
0 commit comments