[code-quality] Re: System testing a large, shell-callable python script

2021-06-11 Thread Bassam Khouri
You can use purest. It has a built in fixtures that can inspect stdout and stderr. https://docs.pytest.org/en/6.2.x/reference.html Bassam On Thu, Jun 10, 2021 at 1:44 PM Dan Stromberg wrote: > > Hi folks. > > Are there any tools available for system testing a large, shell-callable > python sc

[code-quality] Re: System testing a large, shell-callable python script

2021-06-11 Thread James Cooke
This is probably a little too specific for your particular case, but I'll suggest it anyway, because it's a set-up that I've found has worked well. We've developed a number of post-processing validators at my employer and they are all Python scripts built with Click (https://click.palletsprojec

[code-quality] Re: System testing a large, shell-callable python script

2021-06-11 Thread Jeremy Bowman
Maybe pexpect does what you want? https://pypi.org/project/pexpect/ We recently started using it to test make targets in the Open edX development environment, those tests are at https://github.com/edx/devstack/tree/master/tests if they're useful for reference. Jeremy Bowman On 2021-06-10 13

[code-quality] Re: System testing a large, shell-callable python script

2021-06-10 Thread Mats Wichmann
On 6/10/21 11:43 AM, Dan Stromberg wrote: Hi folks. Are there any tools available for system testingĀ a large, shell-callable python script with many different command line options? I'm aware of pytest for unit tests, but what aboutĀ running a shell command with some options, and checking its

[code-quality] Re: System testing a large, shell-callable python script

2021-06-10 Thread Ian Stapleton Cordasco
I was looking for something else that pip used to use and I think Doug Hellman wrote but couldn't find it. I did find https://pypi.org/project/pytest-shell/ Sent from my phone with my typo-happy thumbs. Please excuse my brevity On Thu, Jun 10, 2021, 12:44 Dan Stromberg wrote: > > Hi folks. > >