@@ -411,9 +411,7 @@ def test_oidc_device_flow_with_client_secret(requests_mock, caplog, support_veri
411
411
(1011 , "" , "\n " ),
412
412
]
413
413
414
- assert re .search (
415
- r"error='authorization_pending'.*error='slow_down'.*Authorized successfully" , caplog .text , flags = re .DOTALL
416
- )
414
+ assert re .search (r"authorization_pending.*slow_down.*Authorized successfully" , caplog .text , flags = re .DOTALL )
417
415
418
416
419
417
@pytest .mark .parametrize ("support_verification_uri_complete" , [False , True ])
@@ -482,7 +480,7 @@ def test_oidc_device_flow_with_pkce(requests_mock, caplog, support_verification_
482
480
]
483
481
484
482
assert re .search (
485
- r"error=' authorization_pending'.*error=' authorization_pending' .*Authorized successfully" ,
483
+ r"authorization_pending.* authorization_pending.*Authorized successfully" ,
486
484
caplog .text ,
487
485
flags = re .DOTALL ,
488
486
)
@@ -558,9 +556,7 @@ def test_oidc_device_flow_without_pkce_nor_secret(
558
556
(1043.5 , "" , "\n " ),
559
557
]
560
558
561
- assert re .search (
562
- r"error='authorization_pending'.*error='slow_down'.*Authorized successfully" , caplog .text , flags = re .DOTALL
563
- )
559
+ assert re .search (r"authorization_pending.*slow_down.*Authorized successfully" , caplog .text , flags = re .DOTALL )
564
560
565
561
566
562
@pytest .mark .parametrize (["mode" , "client_id" , "use_pkce" , "client_secret" , "expected_fields" ], [
@@ -682,9 +678,7 @@ def test_oidc_device_flow_auto_detect(
682
678
(1033 , "" , "\n " ),
683
679
]
684
680
685
- assert re .search (
686
- r"error='authorization_pending'.*error='slow_down'.*Authorized successfully" , caplog .text , flags = re .DOTALL
687
- )
681
+ assert re .search (r"authorization_pending.*slow_down.*Authorized successfully" , caplog .text , flags = re .DOTALL )
688
682
689
683
690
684
def test_oidc_refresh_token_flow (requests_mock , caplog ):
0 commit comments