Hi! I was recently writing some tests for a bunch of console scripts. I ended up having a parametrised function that can run a script for real (using subprocess.run) or can import its main function, mock the environment and execute it in the same process (this is much faster).
I've done similar things before and in general this seems to be a reasonably common use case. I couldn't find a pytest plugin for testing console scripts, so I'm wondering if it would be useful to create one. What do you think? Cheers, Vasily
_______________________________________________ pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
