Elektrine lite

← Feed

@jjjalljs@ttrpg.network

2026-01-31 14:46 UTC

It's not really that different from like ```python my_get_mock = Mock(side_effect=Some exception("oh no")) result = some_func(http_getter=my_get_mock) ``` There's many ways of writing bad code and tests, but mocks and patches aren't always a bad tool. But sure, you can definitely fuck things up with them.

Replies (0)

No replies.