Simon Willison’s Weblog

Subscribe

29th April 2020

TIL How to mock httpx using pytest-mock — I wrote this test to exercise some [httpx](https://pypi.org/project/httpx/) code today, using [pytest-mock](https://pypi.org/project/pytest-mock/).

Recent articles

This is a beat by Simon Willison, posted on 29th April 2020.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe