-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider entry_points for PYTEST_PLUGINS and pytest_plugins
This fixes two issues related to the `PYTEST_PLUGINS` environment variable and `pytest_plugins` global variable: * plugins loaded this way are not listed in the list of plugins, * it is not possible to load plugins using their names in `entry_points.txt` files. See #12615.
- Loading branch information
Showing
4 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Plugins specified in the :globalvar:`pytest_plugins` config setting and | ||
:envvar:`PYTEST_PLUGINS` environment variable now allow using | ||
:ref:`entry points <pip-installable plugins>` names additionally to the | ||
importable definitions. Prior to this release, these identifiers used to only | ||
work with the ``-p`` CLI option -- by :user:`mtelka`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters