Have you ever wanted to use the result of one test for another test? That is when pytest_steps comes in handy.
In the code above, I use the result of sum_test
as the input of average_2_nums
. The argument steps_data
allows me to share the data between 2 tests.