@pamelafox
I definitely prefer custom mocks in most cases - magic mocks work when everything is totally unit-ized and so you want to assume nothing about the components surrounding the thing to be tested, but in practice, if you can't actually use the thing in testing, it's good to have at least some imitation of its real behavior, because otherwise you're usually testing nothing
=> More informations about this toot | View the thread | More toots from jonny@neuromatch.social
=> View pamelafox@fosstodon.org profile
text/gemini
This content has been proxied by September (ba2dc).