AUT: Cards (To-Do List)
pytest.ini
- primary pytest configuration file that allows you to change pytest's default behaviour.conftest.py
- that file contains fixtures and hook functions. It can exist at therootdir
or in any subdirectory.__init__.py
- when put into test subdirectories, this file allows you to have identical test file names in multiple test directories.tox.ini
,pyproject.toml
,setup.cfg
- these files can take the place ofpytest.ini
.tox.ini
is used by tox, the CLI automated testing tool;pyproject.toml
is used for packaging Python projects and can be used to save settings for various tool, including pytest.setup.cfg
is also used for packaging and can be used to save pytest settings.
- The
addopts
setting enables us to list the pytest flags we always want to run in this project. --strict-markers
tells pytest to raise an error for any unregistered marker encountered in the test code as opposed to a warning. Turn this on to avoid marker-name typos.--strict-config
tells pytest to raise an error for any difficulty in parsing configuration files. The default is a warning. Turn this on to avoid configuration-file typos going unnoticed.-ra
tells pytest to display extra test summary information at the end of a test run. The default is to show extra information on only test failures and errors. Thea
part of-ra
tells pytest to show information on everything except passing tests. This adds skipped, xfailed, and xpassed to the failure and error tests