Run the test!
Yay! Your pytest
test suite is ready to be launched. Now you will enter a simple command to run the test suite you developed in the previous exercise. Let's run the tests via the command-line interface.
A quick overview of the exercise: you can find the exercise instructions below this section, the run_the_test.py
script on the right, and the terminal at the bottom (below the script).
This exercise is part of the course
Introduction to Testing in Python
Exercise instructions
- Add import of the
pytest
library to the code. - Enter the
pytest run_the_test.py
command to CLI and press Enter. - Press the "Submit Answer" button at the end.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
