To load a yaml file
import yaml
# This loads the file in this module under 'files/test.yaml'
yaml_dict_a = yaml::load("test.yaml")
# This does the same
# Notice this one uses loads instead of load
# loads loads from a string instead of a file
# The string is obtained by using std::source, which reads the file from disk
yaml_dict_b = yaml::loads(std::source("test.yaml"))
# loads loads from a string
yaml_dict_c = yaml::loads("""key: value""")
see examples/network_inventory
- Setup a virtual env
mkvirtualenv inmanta-test -p python3
pip install -r requirements.dev.txt
pip install -r requirements.txt
mkdir /tmp/env
export INMANTA_TEST_ENV=/tmp/env
export [email protected]:inmanta/
- Run tests
pytest tests