osl_ephys.utils.package#
Attributes#
Functions#
|
Try to import a package raising friendly error if not present. |
Run OSL tests from within python |
Module Contents#
- osl_ephys.utils.package.soft_import(package)[source]#
Try to import a package raising friendly error if not present.
- osl_ephys.utils.package.run_package_tests()[source]#
Run OSL tests from within python
https://docs.pytest.org/en/7.1.x/how-to/usage.html
Notes
Calling pytest.main() will result in importing your tests and any modules that they import. Due to the caching mechanism of python’s import system, making subsequent calls to pytest.main() from the same process will not reflect changes to those files between the calls. For this reason, making multiple calls to pytest.main() from the same process (in order to re-run tests, for example) is not recommended.