We need a working Python interpreter with the PyTest framework installed. For the behavior-driven development part, we are going to need the pytest-bdd plugin.
pytest and pytest-bdd can be installed using the following command:
$ pip install pytest pytest-bdd
The examples have been written on Python 3.7, pytest 6.0.2, and pytest-bdd 4.0.1, but should work on most modern Python versions. You can find the code files present in this chapter on GitHub at https://github.com/PacktPublishing/Crafting-Test-Driven-Software-with-Python/tree/main/Chapter07.