Acumos Python Client Developer Guide¶
Testing¶
We use a combination of tox, pytest, and flake8 to test
acumos. Code which is not PEP8 compliant (aside from E501) will be
considered a failing test. You can use tools like autopep8 to
“clean” your code as follows:
$ pip install autopep8
$ cd acumos-python-client
$ autopep8 -r --in-place --ignore E501 acumos/ testing/ examples/
Run tox directly:
$ cd acumos-python-client
$ export WORKSPACE=$(pwd) # env var normally provided by Jenkins
$ tox
You can also specify certain tox environments to test:
$ tox -e py34 # only test against Python 3.4
$ tox -e flake8 # only lint code