You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While developing the example redlinks plugin, I noticed that installing it into the development environment changes the behavior of the core test suite.
The plugin is behaving as intended, but it means the outcome of the core test suite depends on which pluggy plugins are installed in the current Python environment.
Suggestion
It would be useful if the core test suite could disable pluggy plugin loading, or otherwise create an application/plugin manager that doesn't discover external plugins.
This would make the core tests deterministic and independent of the developer's environment. Plugin-specific tests could then explicitly register the plugins they need and verify their behavior in isolation.
Is there an existing mechanism to prevent plugin discovery during tests, or would it make sense to add one?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
While developing the example
redlinksplugin, I noticed that installing it into the development environment changes the behavior of the core test suite.For example, after installing the plugin with:
the renderer test
fails because the plugin decorates the generated link by adding attributes such as
class="redlink"and inline styles. For example:The plugin is behaving as intended, but it means the outcome of the core test suite depends on which pluggy plugins are installed in the current Python environment.
Suggestion
It would be useful if the core test suite could disable pluggy plugin loading, or otherwise create an application/plugin manager that doesn't discover external plugins.
This would make the core tests deterministic and independent of the developer's environment. Plugin-specific tests could then explicitly register the plugins they need and verify their behavior in isolation.
Is there an existing mechanism to prevent plugin discovery during tests, or would it make sense to add one?
All reactions