gabrielfalcao / HTTPretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module
https://httpretty.readthedocs.org
MIT License
2.11k stars 276 forks source link

Fix link headers example in docs #469

Open katehyerinjeon opened 1 year ago

katehyerinjeon commented 1 year ago

Reference

See issue #463 by @tnk-dev.

Bug

In the link headers example in docs, the first httpretty.register_uri call was getting overwritten by the second call leading to test failures.

Fix

Move the second httpretty.register_uri invocation for the next URL below first response assertions.