February 2022
Intermediate to advanced
274 pages
6h 28m
English
If you are writing tests for a project that already has a pyproject.toml, tox.ini, or setup.cfg file in place, you can still use pytest.ini to store your pytest configuration settings. Or you can store your configuration settings in one of these alternate configuration files. The syntax is a little different in the two non-ini files, so we’ll take a look at each one.
A tox.ini file contains settings for tox, which is covered in more detail in Chapter 11, tox and Continuous Integration. It can also include a [pytest] section. And because it’s also an .ini file, the tox.ini example below is almost identical to the pytest.ini example shown earlier. The only difference is ...
Read now
Unlock full access