If you’re using pytest, I’d be inclined to use Guild’s Python API in Python-based tests. The checks supported by steps
are intended to sniff test the Guild file and supported operations from a command line.
Writing your tests in Python will also give you more control over the types of assertions you run.
I created an example of using pytest in a Guild enabled project:
This does not use guild.ipy
to generate and test results, but it does show how test functions can be used to test other functions. You might imagine extending this pattern to implement any variety of test scheme.