Merge pull request #1689 from quodlibetor/autouse-docs

Document the interaction of autouse scopes
This commit is contained in:
Bruno Oliveira 2016-06-29 18:08:06 -03:00 committed by GitHub
commit 75ecd94294
1 changed files with 4 additions and 0 deletions

View File

@ -798,6 +798,10 @@ If we run it, we get two passing tests::
Here is how autouse fixtures work in other scopes:
- autouse fixtures obey the ``scope=`` keyword-argument: if an autouse fixture
has ``scope='session'`` it will only be run once, no matter where it is
defined. ``scope='class'`` means it will be run once per class, etc.
- if an autouse fixture is defined in a test module, all its test
functions automatically use it.