Great article by @hynek about testing. Instead of mocking an external dependency, define your own interface, and mock that instead. It's one of those good testing hygiene practices that makes your production code better.
RT @hynek
Ever wondered what to mock in your tests?

You’ve heard of “Don’t Mock What You Don’t Own”, but it made no sense to you?

I’ve written something just for you:

Sign in to participate in the conversation
Michael Lynch's Mastodon

Michael Lynch's personal Mastodon instance