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 Motl
|
||||||
Andreas Zeidler
|
Andreas Zeidler
|
||||||
Andrew Shapton
|
Andrew Shapton
|
||||||
|
Andrew Svetlov
|
||||||
Andrey Paramonov
|
Andrey Paramonov
|
||||||
Andrzej Klajnert
|
Andrzej Klajnert
|
||||||
Andrzej Ostrowski
|
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
|
FixtureDef
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
.. autoclass:: _pytest.fixtures.FixtureDef()
|
.. autoclass:: pytest.FixtureDef()
|
||||||
:members:
|
:members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,10 @@ from _pytest.config.argparsing import OptionGroup
|
||||||
from _pytest.config.argparsing import Parser
|
from _pytest.config.argparsing import Parser
|
||||||
from _pytest.debugging import pytestPDB as __pytestPDB
|
from _pytest.debugging import pytestPDB as __pytestPDB
|
||||||
from _pytest.fixtures import fixture
|
from _pytest.fixtures import fixture
|
||||||
|
from _pytest.fixtures import FixtureDef
|
||||||
from _pytest.fixtures import FixtureLookupError
|
from _pytest.fixtures import FixtureLookupError
|
||||||
from _pytest.fixtures import FixtureRequest
|
from _pytest.fixtures import FixtureRequest
|
||||||
|
from _pytest.fixtures import SubRequest
|
||||||
from _pytest.fixtures import yield_fixture
|
from _pytest.fixtures import yield_fixture
|
||||||
from _pytest.freeze_support import freeze_includes
|
from _pytest.freeze_support import freeze_includes
|
||||||
from _pytest.legacypath import TempdirFactory
|
from _pytest.legacypath import TempdirFactory
|
||||||
|
@ -97,8 +99,10 @@ __all__ = [
|
||||||
"fail",
|
"fail",
|
||||||
"File",
|
"File",
|
||||||
"fixture",
|
"fixture",
|
||||||
|
"FixtureDef",
|
||||||
"FixtureLookupError",
|
"FixtureLookupError",
|
||||||
"FixtureRequest",
|
"FixtureRequest",
|
||||||
|
"SubRequest",
|
||||||
"freeze_includes",
|
"freeze_includes",
|
||||||
"Function",
|
"Function",
|
||||||
"hookimpl",
|
"hookimpl",
|
||||||
|
|
Loading…
Reference in New Issue