Simon Willison’s Weblog

Subscribe

2nd July 2024

TIL Mocking Stripe signature checks in a pytest fixture — I'm writing some code that accepts webhooks from Stripe. I wanted to simulate hits to this endpoint in my Django tests. Stripe uses a `Stripe-Signature` header and I wanted a way to mock my code so that I didn't need to calculate the correct signature.

This is a beat by Simon Willison, posted on 2nd July 2024.

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