@@ -204,7 +204,7 @@ def test_all_providers_do_not_cache_by_default_and_can_set_caching_properties(pr
204
204
"threshold" ,
205
205
(RequestCacheValidationThreshold .FINALIZED , RequestCacheValidationThreshold .SAFE ),
206
206
)
207
- @pytest .mark .parametrize ("endpoint" , BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT )
207
+ @pytest .mark .parametrize ("endpoint" , sorted ( BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT ) )
208
208
@pytest .mark .parametrize (
209
209
"blocknum,should_cache" ,
210
210
(
@@ -254,7 +254,7 @@ def test_blocknum_validation_against_validation_threshold_when_caching_mainnet(
254
254
"threshold" ,
255
255
(RequestCacheValidationThreshold .FINALIZED , RequestCacheValidationThreshold .SAFE ),
256
256
)
257
- @pytest .mark .parametrize ("endpoint" , BLOCKNUM_IN_PARAMS )
257
+ @pytest .mark .parametrize ("endpoint" , sorted ( BLOCKNUM_IN_PARAMS ) )
258
258
@pytest .mark .parametrize (
259
259
"block_id,blocknum,should_cache" ,
260
260
(
@@ -297,7 +297,7 @@ def test_block_id_param_caching_mainnet(
297
297
"threshold" ,
298
298
(RequestCacheValidationThreshold .FINALIZED , RequestCacheValidationThreshold .SAFE ),
299
299
)
300
- @pytest .mark .parametrize ("endpoint" , BLOCKHASH_IN_PARAMS )
300
+ @pytest .mark .parametrize ("endpoint" , sorted ( BLOCKHASH_IN_PARAMS ) )
301
301
@pytest .mark .parametrize (
302
302
"blocknum,should_cache" ,
303
303
(
@@ -360,7 +360,7 @@ def test_request_caching_validation_threshold_defaults(
360
360
361
361
362
362
@pytest .mark .parametrize (
363
- "endpoint" , BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS
363
+ "endpoint" , sorted ( BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS )
364
364
)
365
365
@pytest .mark .parametrize (
366
366
"time_from_threshold,should_cache" ,
@@ -436,7 +436,7 @@ def test_sync_validation_against_validation_threshold_time_based(
436
436
),
437
437
)
438
438
@pytest .mark .parametrize (
439
- "endpoint" , BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS
439
+ "endpoint" , sorted ( BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS )
440
440
)
441
441
def test_validation_against_validation_threshold_time_based_configured (
442
442
time_from_threshold , should_cache , chain_id , endpoint , sync_provider , request_mocker
@@ -642,7 +642,7 @@ async def test_async_request_caching_does_not_share_state_between_providers(
642
642
"threshold" ,
643
643
(RequestCacheValidationThreshold .FINALIZED , RequestCacheValidationThreshold .SAFE ),
644
644
)
645
- @pytest .mark .parametrize ("endpoint" , BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT )
645
+ @pytest .mark .parametrize ("endpoint" , sorted ( BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT ) )
646
646
@pytest .mark .parametrize (
647
647
"blocknum,should_cache" ,
648
648
(
@@ -689,7 +689,7 @@ async def test_async_blocknum_validation_against_validation_threshold_mainnet(
689
689
"threshold" ,
690
690
(RequestCacheValidationThreshold .FINALIZED , RequestCacheValidationThreshold .SAFE ),
691
691
)
692
- @pytest .mark .parametrize ("endpoint" , BLOCKNUM_IN_PARAMS )
692
+ @pytest .mark .parametrize ("endpoint" , sorted ( BLOCKNUM_IN_PARAMS ) )
693
693
@pytest .mark .parametrize (
694
694
"block_id,blocknum,should_cache" ,
695
695
(
@@ -735,7 +735,7 @@ async def test_async_block_id_param_caching_mainnet(
735
735
"threshold" ,
736
736
(RequestCacheValidationThreshold .FINALIZED , RequestCacheValidationThreshold .SAFE ),
737
737
)
738
- @pytest .mark .parametrize ("endpoint" , BLOCKHASH_IN_PARAMS )
738
+ @pytest .mark .parametrize ("endpoint" , sorted ( BLOCKHASH_IN_PARAMS ) )
739
739
@pytest .mark .parametrize (
740
740
"blocknum,should_cache" ,
741
741
(
@@ -794,7 +794,7 @@ async def test_async_request_caching_validation_threshold_defaults(
794
794
795
795
@pytest .mark .asyncio
796
796
@pytest .mark .parametrize (
797
- "endpoint" , BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS
797
+ "endpoint" , sorted ( BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS )
798
798
)
799
799
@pytest .mark .parametrize (
800
800
"time_from_threshold,should_cache" ,
@@ -856,7 +856,7 @@ async def test_async_validation_against_validation_threshold_time_based(
856
856
857
857
@pytest .mark .asyncio
858
858
@pytest .mark .parametrize (
859
- "endpoint" , BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS
859
+ "endpoint" , sorted ( BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS )
860
860
)
861
861
@pytest .mark .parametrize ("blocknum" , ("0x0" , "0x1" , "0x2" , "0x3" , "0x4" , "0x5" ))
862
862
async def test_async_request_caching_with_validation_threshold_set_to_none (
@@ -901,7 +901,7 @@ async def test_async_request_caching_with_validation_threshold_set_to_none(
901
901
),
902
902
)
903
903
@pytest .mark .parametrize (
904
- "endpoint" , BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS
904
+ "endpoint" , sorted ( BLOCKNUM_IN_PARAMS | BLOCK_IN_RESULT | BLOCKHASH_IN_PARAMS )
905
905
)
906
906
async def test_async_validation_against_validation_threshold_time_based_configured (
907
907
time_from_threshold ,
0 commit comments