-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
HactoberfestenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerstesting
Description
Description:
🚀 Overview
We need to build a robust test suite for our HTTPClient class in easyswitch/utils/http.py to ensure reliability across all mobile money API integrations.
*📋 Test Coverage Requirements
Core Functionality
- Initialization with different configurations
- Request methods (GET, POST, PUT, DELETE, PATCH)
- Header management and merging
- Timeout handling and retry mechanisms
- Error handling for network issues
Specific Scenarios
- File uploads with multipart/form-data
- JSON payload serialization
- Query parameters encoding
- Proxy configuration support
- Session management with context managers
Error Conditions
- HTTP error responses (4xx, 5xx)
- Network timeouts
- JSON parsing errors
- Rate limiting (429 responses)
- SSL/TLS certificate issues
Metadata
Metadata
Assignees
Labels
HactoberfestenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerstesting