requests-mock
latest
Overview
Using the Mocker
Request Matching
Creating Responses
Known Issues
Request History
Adapter Usage
Additional Loading
Release Notes
requests-mock
Docs
»
Welcome to requests-mock’s documentation!
Edit on GitHub
Welcome to requests-mock’s documentation!
¶
Contents:
Overview
Installation
Using the Mocker
Activation
Class Decorator
Methods
Real HTTP Requests
JSON Encoder
Nested Mockers
Mocking specific sessions
Request Matching
Simple
Path Matching
Query Strings
Matching ANY
Regular Expressions
Request Headers
Additional Matchers
Custom Matching
Creating Responses
Registering Responses
Dynamic Response
Response Lists
Raising Exceptions
Handling Cookies
Known Issues
Case Insensitivity
Cookies in Sessions
Request History
Called
Request Objects
Reset History
Adapter Usage
Creating an Adapter
Additional Loading
Fixtures
pytest
Release Notes
¶
Release Notes
1.10.0-6
1.10.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.0
1.6.0
1.5.2
1.5.1
1.5.0
1.3.0
1.1.0
Indices and tables
¶
Index
Module Index
Search Page