February 2022
Intermediate to advanced
274 pages
6h 28m
English
Getting used to adding and editing configuration files now will help you understand just how simple and powerful they can be. These exercises focus on the primary configuration files.
The following exercises are based around the /path/to/code/exercises/ch8 directory, which looks like this:
| | exercises/ch8 |
| | ├── pytest.ini |
| | └── tests |
| | ├── a |
| | │ └── test_x.py |
| | └── b |
| | └── test_x.py |
Go to /path/to/code/exercises/ch8 and run pytest.
In the pytest.ini file, set testpaths to tests/a.
Change the testpaths from tests/a to tests. Add __init__.py files to a and b.
Set addopts ...
Read now
Unlock full access