Here’s a simple hello world pytest example to run on a centos box:
Announcement
You can find all my latest posts on medium.$ cat test_sample.py import commands status, outputx = commands.getstatusoutput("yum info tree | grep '^Repo' | grep -o 'installed'") def test_answer(): assert outputx == 'installed'