Tests
TestConnectionRetryLogic
Test Connection Retry Logic functionality for Tests integration.
View module source on GitHub
Test case to simulate RemoteDisconnected connection errors and verify retry logic.
This test demonstrates how the improved connection pool and retry logic in maxim_apis.py
handles connection issues that users were experiencing.
Test cases for connection retry logic improvements.
Set up test fixtures.
Test that connection pool is configured with improved settings.
Test that RemoteDisconnected errors are retried and eventually succeed.
Test that PoolError has separate retry logic with different parameters.
Test that HTTP errors are not retried (permanent failures).
Test behavior when max retries are exhausted.
Test that exponential backoff timing is correct.
Test that file upload handles RemoteDisconnected errors with retry logic.
Test that file upload HTTP errors are not retried.
Test that actual API methods handle connection errors properly.
Test that various connection-related errors are properly caught in our exception handling.
Test that unexpected exceptions are properly logged and re-raised.
Test that general RequestException errors are retried.
Test retry logic with custom parameters.
Test that the connection pool context manager works correctly.
Test that version checking works correctly during retry scenarios.
Separate test class for file upload specific retry logic.
Set up test fixtures.
Test that file uploads use extended timeouts.
Test file upload behavior when all retries are exhausted.