@@ -25,7 +25,7 @@ def test_unit_retry_with_backoff_does_retry(caplog):
25
25
26
26
with requests_mock .Mocker () as mock :
27
27
# mock a 500 status code for POST requests to the api
28
- mock .post ("https://api.unstructured .io/general/v0/general" , status_code = 500 )
28
+ mock .post ("https://api.unstructuredapp .io/general/v0/general" , status_code = 500 )
29
29
session = UnstructuredClient (api_key_auth = FAKE_KEY )
30
30
31
31
with open (filename , "rb" ) as f :
@@ -55,7 +55,7 @@ def test_unit_backoff_strategy_logs_retries_5XX(status_code: int, caplog):
55
55
56
56
with requests_mock .Mocker () as mock :
57
57
# mock a 500/503 status code for POST requests to the api
58
- mock .post ("https://api.unstructured .io/general/v0/general" , status_code = status_code )
58
+ mock .post ("https://api.unstructuredapp .io/general/v0/general" , status_code = status_code )
59
59
session = UnstructuredClient (api_key_auth = FAKE_KEY )
60
60
61
61
with open (filename , "rb" ) as f :
@@ -81,7 +81,7 @@ def test_unit_backoff_strategy_logs_retries_connection_error(caplog):
81
81
)
82
82
with requests_mock .Mocker () as mock :
83
83
# mock a connection error response to POST request
84
- mock .post ("https://api.unstructured .io/general/v0/general" , exc = requests .exceptions .ConnectionError )
84
+ mock .post ("https://api.unstructuredapp .io/general/v0/general" , exc = requests .exceptions .ConnectionError )
85
85
session = UnstructuredClient (api_key_auth = FAKE_KEY )
86
86
87
87
with open (filename , "rb" ) as f :
0 commit comments