Why a mock doesn’t work
For a person who does not code very large programs in Python, this looks scary and like something that is hardly &quot;only one way to do it&quot; and that the most elegant solution gives you what you want. How I import things (or the libraries I depend on!) affects how I can write my tests? Really?<p>My own Python scripts are typically single-screen in length. And one-off stuff, where they either work or don&#x27;t, basically.<p>Is this stuff really what developers of large-scale Python programs have to take into account? Or is this blog post misinformed, because there is an obviously better and standard way?