vimala.pytest_plugin module

A pytest plugin for testing the vimala package.

This plugin can be enabled via the pytest_plugins conftest.py variable. This allows us to use this plugin in external packages’ tests instead of just for this package’s tests.

Examples

The following line should be found in the “tests/conftest.py” file:

>>> pytest_plugins = ["vimala.pytest_plugin"]
vim_proc_mock()[source]

Returns a mocked version of proctor.safe_popen().

This mocked version will be used to run the ‘vim’ system command if vimala.vim() is called.

Return type:

Generator[Mock, None, None]