jamielennox / requests-mock

Mocked responses for the requests library
https://requests-mock.readthedocs.io
Apache License 2.0
450 stars 71 forks source link

Documentation for mocking specific sessions shows incorrect output #260

Open gibsramen opened 6 months ago

gibsramen commented 6 months ago

The section on mocking specific sessions shows incorrect output of the code.

image

I believe the output should be:

requests.get before session mock: global
session.get before session mock: global
Within session mock: global
Within session mock: session
After session mock: global
After session mock: global

Happy to submit a PR for this.