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
Rewrite the plugin to avoid private APIs:
* Remove custom testenv conf key: ignore_env_name_mismatch and
ignore_envname_mismatch
* Use existing conf key `runner` to opt-in to ignore_env_name_mismatch
behavior
* Return a subclass of `Info` that filters out the "name" key from
`ToxEnv.__name__` section
* When this plugin is active, the ToxEnv cached info will NOT contain a
"name" key at all, so there will be no name key to conflict, thus nothing
needs to be overridden in the private `_content` dictionary.
All tests are rewritten and vastly simplified, as there are fewer branch points
in the new implementation.
fix#3
Currently the plugin is sneaking around the public API,
tox.tox_env.info.Info.compare
and directly munging a known key inside of
_content
.The better course of action is to wrap
compare
directly and filter out the name tuple if/when it pops in.ToxEnv.cache
andInfo.compare
appear to be public APIs accessible to the registered runner class.The text was updated successfully, but these errors were encountered: