Dead Simple: PyTest and ArgParse
You’re writing a Python script with an argparser and want to test it without mocks and hacks. You’ve been googling for 20 minutes. You’ve landed here. Go no further.
Here is a template for a parser that takes a single argument myfile