August 2018
Beginner
160 pages
4h 8m
English
The @pytest.fixture decorator accepts a name parameter that can be used to specify a name for the fixture, different from the fixture function:
@pytest.fixture(name="venv_dir")def _venv_dir(): ...
This is useful, because there are some annoyances that might affect users when using fixtures declared in the same module as the test functions that use them:
You might adopt this as a good practice in your team if the previous annoyances are frequent. Keep ...
Read now
Unlock full access