2026-01-30 13:01 UTC
Exactly, have fun trying to get test coverage without dependency injection
Replies (1)
-
@jjjalljs@ttrpg.network 2026-01-30 14:33
```python with patch("some_file.requests.get", side_effect=SomeException("oh no")): result = func_using_requests() ``` Though not every language makes mocking as easy, and multiple responsibilities in a single function can quickly get messy.