betamax-matchers

A VCR imitation for python-requests


License
MulanPSL-2.0
Install
pip install betamax-matchers==0.4.0

Documentation

betamax_matchers

Experimental set of Matchers for Betamax that may possibly end up in the main package.

JSON Body Matcher

Usage:

from betamax_matchers.json_body import JSONBodyMatcher

from betamax import Betamax

Betamax.register_request_matcher(JSONBodyMatcher)

Form URL Encoded Body Matcher

Usage:

from betamax_matchers.form_urlencoded import URLEncodedBodyMatcher

from betamax import Betamax

Betamax.register_request_matcher(URLEncodedBodyMatcher)

Multipart Form Data Body Matcher

Usage:

from betamax_matchers.multipart import MultipartFormDataBodyMatcher

from betamax import Betamax

Betamax.register_request_matcher(MultipartFormDataBodyMatcher)