Closed jitseniesen closed 2 years ago
See https://github.com/spyder-ide/spyder-kernels/pull/392#issuecomment-1166323922 for a possible way to implement this.
A problem with using the IPythonConsole plugin to check the environment is that (as far as I can tell) there is not necessarily a console open with the current environment.
As noted in https://github.com/spyder-ide/spyder-unittest/issues/175#issuecomment-1164685995, the plugin uses the environment that Spyder runs in to find its dependencies (nose, pytest and their plugins). Instead, it should use the environment that the user configured for running the tests.
This happens in the following places (at least): when testing whether a test run configuration is valid, when using the plugin option menu item "Show dependencies", when checking for pytest-cov in PR #175.