pMock: a mock object library for Python (via) This should add quite a bit of flexibility to standard unit testing.
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!