Users can customize some pytest behavior using a configuration file called pytest.ini. This file is usually placed at the root of the repository and contains a number of configuration values that are applied to all test runs for that project. It is meant to be kept under version control and committed with the rest of the code.
The format follows a simple ini-style format with all pytest-related options under a [pytest] section. For more details, go to:https://docs.python.org/3/library/configparser.html.
[pytest]
The location of this file also defines what pytest calls the root directory (rootdir): if present, the directory that contains the configuration file is considered the root directory.
The root directory is used for the following:
- To create the tests node IDs
- As a stable location to store information about the project (by pytest plugins and features...