pytest-steps: Share Data Between Tests

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. 

Link to pytest_steps.

My previous tips on testing.

Scroll to Top