Loader#

Salt loader mock support for tests.

saltfactories.plugins.loader.pytest_collection_modifyitems(items)[source]#

Modify the collected items.

Iterate through the collected items, in particular their test modules, to see if there’s a function named configure_loader_modules. If there is, assert that it’s a fixture. If not, raise an error.

saltfactories.plugins.loader.setup_loader_mock(request)[source]#

Setup Salt’s loader mocking/patching if the test module defines a configure_loader_modules fixture.