File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
_test_unstructured_client/unit Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ def test_unit_retry_with_backoff_does_retry(caplog):
2424 )
2525
2626 with requests_mock .Mocker () as mock :
27- # mock a 500 status code for POST requests to the api
28- mock .post ("https://api.unstructuredapp.io/general/v0/general" , status_code = 500 )
27+ # mock a 502 status code for POST requests to the api
28+ mock .post ("https://api.unstructuredapp.io/general/v0/general" , status_code = 502 )
2929 session = UnstructuredClient (api_key_auth = FAKE_KEY )
3030
3131 with open (filename , "rb" ) as f :
@@ -35,7 +35,7 @@ def test_unit_retry_with_backoff_does_retry(caplog):
3535
3636 with pytest .raises (Exception ) as excinfo :
3737 resp = session .general .partition (req , retries = retries )
38- assert resp .status_code == 500
38+ assert resp .status_code == 502
3939 assert "API error occurred" in str (excinfo .value )
4040
4141 # the number of retries varies
You can’t perform that action at this time.
0 commit comments