August 2018
Beginner
160 pages
4h 8m
English
By default, pytest collects tests using this heuristic:
This convention is simple to understand and works for most projects, but they can be overwritten by these configuration options:
Here's an example of a configuration file changing the defaults:
[pytest]python_files = unittests_*.pypython_functions = check_*python_classes = *TestSuite ...
Read now
Unlock full access