* Subprocess().Popen() -> Subprocess().popen() per PEP-8 conventions * Move cosmos_error out of class because it isn't a member function per PEP-8 * Add pep8-naming plugin to flake8 so PEP-8 errors are caught during syntax checks
29 lines
409 B
INI
29 lines
409 B
INI
[tox]
|
|
envlist = py34-unit
|
|
|
|
[testenv]
|
|
setenv =
|
|
DCOS_CONFIG = {env:DCOS_CONFIG}
|
|
|
|
passenv =
|
|
TEAMCITY_VERSION
|
|
|
|
deps =
|
|
pytest
|
|
pytest-cov
|
|
pypiwin32
|
|
teamcity-messages
|
|
|
|
[testenv:syntax]
|
|
deps =
|
|
flake8
|
|
flake8-import-order
|
|
pep8-naming
|
|
|
|
commands =
|
|
flake8 --verbose {env:CI_FLAGS:} dcos tests setup.py
|
|
|
|
[testenv:py34-unit]
|
|
commands =
|
|
py.test -vv {env:CI_FLAGS:} --cov {envsitepackagesdir}/dcos tests
|