mirror of
https://github.com/openkmip/pykmip
synced 2026-01-07 11:03:16 +00:00
This change adds a pytest config argument, allowing the integration test suite to be run with the client configured with a specific section from the PyKMIP configuration file. A simple integration test class is added to demonstrate how to use the client created using the config argument. To run the integration test suite with a specific configuration, use: $ tox -e integration -- --config <config-section> where <config-section> is the name of the config file section to use for the PyKMIP client.
24 lines
568 B
INI
24 lines
568 B
INI
[tox]
|
|
envlist = pep8,py26,py27,py33,py34
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
|
coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit
|
|
coverage report -m
|
|
coverage html
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 kmip/
|
|
|
|
[testenv:integration]
|
|
# Note: This requires local or remote access to a KMIP appliance or service
|
|
deps = {[testenv]deps}
|
|
commands =
|
|
py.test --strict kmip/tests/integration {posargs}
|
|
|
|
[flake8]
|
|
exclude = .git,.tox,dist,rpmbuild,*.egg-info
|