What’s the difference between
with patch("module.func") as mock_func:
...
vs
module.func = empty_func
Aside from the context manager part, which is obviously easy to replicate in the latter case as well.
What’s the difference between
with patch("module.func") as mock_func:
...
vs
module.func = empty_func
Aside from the context manager part, which is obviously easy to replicate in the latter case as well.