Clarify package scope
The behavior of package scope is surprising to some (as seen by related questions on SO), this should clarify it a bit.
This commit is contained in:
parent
bd58c09500
commit
82fda31e99
|
@ -494,7 +494,7 @@ Fixtures are created when first requested by a test, and are destroyed based on
|
|||
* ``function``: the default scope, the fixture is destroyed at the end of the test.
|
||||
* ``class``: the fixture is destroyed during teardown of the last test in the class.
|
||||
* ``module``: the fixture is destroyed during teardown of the last test in the module.
|
||||
* ``package``: the fixture is destroyed during teardown of the last test in the package.
|
||||
* ``package``: the fixture is destroyed during teardown of the last test in the package where the fixture is defined, including sub-packages and sub-directories within it.
|
||||
* ``session``: the fixture is destroyed at the end of the test session.
|
||||
|
||||
.. note::
|
||||
|
|
Loading…
Reference in New Issue