Test Connection Retry Logic functionality for Tests integration.
class TestConnectionRetryLogic(unittest.TestCase)
def setUp()
def test_connection_pool_configuration()
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_remote_disconnected_retry_success(mock_sleep, mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_pool_error_retry_logic(mock_sleep, mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_http_error_no_retry(mock_sleep, mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_max_retries_exhausted(mock_sleep, mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_exponential_backoff_timing(mock_sleep, mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
@patch("requests.put")
def test_file_upload_remote_disconnected_retry(mock_put, mock_sleep,
mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
@patch("requests.put")
def test_file_upload_http_error_no_retry(mock_put, mock_sleep, mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
def test_api_method_with_connection_error(mock_scribe)
def test_different_connection_errors_are_caught()
@patch("maxim.apis.maxim_apis.scribe")
def test_unexpected_exception_handling(mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_request_exception_retry_logic(mock_sleep, mock_scribe)
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_custom_retry_parameters(mock_sleep, mock_scribe)
def test_connection_pool_session_context_manager()
@patch("maxim.apis.maxim_apis.scribe")
@patch("time.sleep")
def test_version_check_during_retry(mock_sleep, mock_scribe)
class TestFileUploadRetryLogic(unittest.TestCase)
def setUp()
@patch("requests.put")
@patch("time.sleep")
@patch("maxim.apis.maxim_apis.scribe")
def test_file_upload_extended_timeout(mock_scribe, mock_sleep, mock_put)
@patch("requests.put")
@patch("time.sleep")
@patch("maxim.apis.maxim_apis.scribe")
def test_file_upload_retry_exhaustion(mock_scribe, mock_sleep, mock_put)
Was this page helpful?