Compare commits
2 Commits
main
...
expose-fix
Author | SHA1 | Date |
---|---|---|
|
efbd83fe04 | |
|
23232f3aa0 |
1
AUTHORS
1
AUTHORS
|
@ -26,6 +26,7 @@ Andrea Cimatoribus
|
|||
Andreas Motl
|
||||
Andreas Zeidler
|
||||
Andrew Shapton
|
||||
Andrew Svetlov
|
||||
Andrey Paramonov
|
||||
Andrzej Klajnert
|
||||
Andrzej Ostrowski
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
Fixture types are now exported so the may be used in pytest plugin hooks.
|
||||
|
||||
The newly-exported types are:
|
||||
|
||||
- ``pytest.FixtureDef`` for :class:`FixtureDef <pytest.FixtureDef>`
|
||||
- ``pytest.SubRequest`` for ``_pytest.fixtures.SubRequest`` (derived from :class:`FixtureRequest <pytest.FixtureRequest`).
|
||||
|
||||
|
||||
They are used by ``pytest_fixture_setup`` and ``pytest_fixture_post_finalizer`` hook definitions.
|
|
@ -905,7 +905,7 @@ File
|
|||
FixtureDef
|
||||
~~~~~~~~~~
|
||||
|
||||
.. autoclass:: _pytest.fixtures.FixtureDef()
|
||||
.. autoclass:: pytest.FixtureDef()
|
||||
:members:
|
||||
:show-inheritance:
|
||||
|
||||
|
|
|
@ -19,8 +19,10 @@ from _pytest.config.argparsing import OptionGroup
|
|||
from _pytest.config.argparsing import Parser
|
||||
from _pytest.debugging import pytestPDB as __pytestPDB
|
||||
from _pytest.fixtures import fixture
|
||||
from _pytest.fixtures import FixtureDef
|
||||
from _pytest.fixtures import FixtureLookupError
|
||||
from _pytest.fixtures import FixtureRequest
|
||||
from _pytest.fixtures import SubRequest
|
||||
from _pytest.fixtures import yield_fixture
|
||||
from _pytest.freeze_support import freeze_includes
|
||||
from _pytest.legacypath import TempdirFactory
|
||||
|
@ -97,8 +99,10 @@ __all__ = [
|
|||
"fail",
|
||||
"File",
|
||||
"fixture",
|
||||
"FixtureDef",
|
||||
"FixtureLookupError",
|
||||
"FixtureRequest",
|
||||
"SubRequest",
|
||||
"freeze_includes",
|
||||
"Function",
|
||||
"hookimpl",
|
||||
|
|
Loading…
Reference in New Issue