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 <strom...@gmail.com> 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 stdout for appropriate content? > > Thanks. > > > -- > Dan Stromberg > _______________________________________________ > code-quality mailing list -- code-quality@python.org > To unsubscribe send an email to code-quality-le...@python.org > https://mail.python.org/mailman3/lists/code-quality.python.org/ > Member address: bassam.kho...@gmail.com > -- --- "What we can or cannot do, what we consider possible or impossible, is rarely a function of our true capability. It is more likely a function of our beliefs about who we are." - Tony Robbins
_______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-le...@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: arch...@mail-archive.com