Install Salt Factories¶
Installing Salt Factories is as simple as:
python -m pip install pytest-salt-factories
And, that’s honestly it.
Salt¶
Salt factories does not define Salt as a hard requirement because that would create a chicken and egg problem while testing Salt itself. This is not a problem while testing code outside of the Salt repository.
To install Salt along with Salt Factories:
python -m pip install 'pytest-salt-factories[salt]'
Docker¶
Salt factories also supports container factories using docker containers. To have container support enabled, install Salt Factories along with docker:
python -m pip install 'pytest-salt-factories[docker]'
Multiple Optional Dependencies¶
Installing salt-factories with multiple optional dependencies is also simple.
python -m pip install 'pytest-salt-factories[salt,docker]'