kevin1024 / vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing
MIT License
2.72k stars 388 forks source link

Stubs: Mock httpx.Reponse.elapsed with a constant #835

Open pbasista opened 7 months ago

pbasista commented 7 months ago

This is a naive way of working around the issue where httpx.Response.elapsed property is unavailable in tests that use vcrpy because the httpx responses built from serialized data by vcrpy currently lack the elapsed property.

Relates to issue #600.