@@ -555,7 +555,7 @@ def backoff_time(self, *args, **kwargs):
555
555
session_send .return_value = mocked_response
556
556
557
557
with patch .object (requests .Session , "send" , return_value = mocked_response ) as mocked_send :
558
- with pytest .raises (UserDefinedBackoffException ) :
558
+ with pytest .raises (AirbyteTracedException ) as e :
559
559
http_client .send_request (
560
560
http_method = "get" , url = "https://test_base_url.com/v1/endpoint" , request_kwargs = {}
561
561
)
@@ -583,7 +583,7 @@ def backoff_time(self, *args, **kwargs):
583
583
session_send .return_value = mocked_response
584
584
585
585
with patch .object (requests .Session , "send" , return_value = mocked_response ) as mocked_send :
586
- with pytest .raises (UserDefinedBackoffException ) :
586
+ with pytest .raises (AirbyteTracedException ) as e :
587
587
http_client .send_request (
588
588
http_method = "get" , url = "https://test_base_url.com/v1/endpoint" , request_kwargs = {}
589
589
)
@@ -613,7 +613,7 @@ def backoff_time(self, *args, **kwargs):
613
613
session_send .return_value = mocked_response
614
614
615
615
with patch .object (requests .Session , "send" , return_value = mocked_response ) as mocked_send :
616
- with pytest .raises (UserDefinedBackoffException ) :
616
+ with pytest .raises (AirbyteTracedException ) as e :
617
617
http_client .send_request (
618
618
http_method = "get" , url = "https://test_base_url.com/v1/endpoint" , request_kwargs = {}
619
619
)
@@ -652,7 +652,7 @@ def backoff_time(self, *args, **kwargs):
652
652
session_send .return_value = mocked_response
653
653
654
654
with patch .object (requests .Session , "send" , return_value = mocked_response ) as mocked_send :
655
- with pytest .raises (UserDefinedBackoffException ) :
655
+ with pytest .raises (AirbyteTracedException ) as e :
656
656
http_client .send_request (
657
657
http_method = "get" , url = "https://test_base_url.com/v1/endpoint" , request_kwargs = {}
658
658
)
@@ -680,7 +680,7 @@ def backoff_time(self, *args, **kwargs):
680
680
session_send .return_value = mocked_response
681
681
682
682
with patch .object (requests .Session , "send" , return_value = mocked_response ) as mocked_send :
683
- with pytest .raises (UserDefinedBackoffException ) :
683
+ with pytest .raises (AirbyteTracedException ) as e :
684
684
http_client .send_request (
685
685
http_method = "get" , url = "https://test_base_url.com/v1/endpoint" , request_kwargs = {}
686
686
)
@@ -709,7 +709,7 @@ def test_backoff_strategy_endless(
709
709
session_send .return_value = mocked_response
710
710
711
711
with patch .object (requests .Session , "send" , return_value = mocked_response ) as mocked_send :
712
- with pytest .raises (expected_error ) :
712
+ with pytest .raises (AirbyteTracedException ) as e :
713
713
http_client .send_request (
714
714
http_method = "get" ,
715
715
url = "https://test_base_url.com/v1/endpoint" ,
0 commit comments