responses
Package — TestingPython 3.7+Intermediate
Mock the requests library for unit testing HTTP
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.7+
- Dependencies
- requests, urllib3, PyYAML
- Install
pip install responses
Learn by Difficulty
Quick Example
python
# Install: pip install responses import responses # Basic responses usage print(f"Using responses") # See documentation for detailed examples
responses is a third-party package. Mock the requests library for unit testing HTTP. Install with: pip install responses
Try in PlaygroundTags
packagetestingquality-assurance