Closed reynoldsnlp closed 5 years ago
Rather than mock up subprocess.run
, I just divided the install
function into two functions: one to build the command, and the other to run it. That way pytest
can just test whether the command-building function is doing the right thing.
Suggestion from @ncoghlan here