[tox]
envlist = py27, flake8

[testenv]
sitepackages = true
install_command = pip install --allow-unverified=mopidy --pre {opts} {packages}
commands =
    py.test \
        --basetemp={envtmpdir} \
        --junit-xml=xunit-{envname}.xml \
        --cov=mopidy_pandora --cov-report=term-missing
deps =
    mock
    mopidy
    pytest
    pytest-capturelog
    pytest-cov
    pytest-xdist
    responses

[testenv:flake8]
skip_install = true
sitepackages = false
deps =
    flake8
    flake8-import-order
    pep8-naming
commands = flake8 --show-source --statistics --max-line-length 120 mopidy_pandora/ setup.py tests/

[tox]
envlist = py27, flake8

[testenv]
sitepackages = true
whitelist_externals=py.test
install_command = pip install --allow-unverified=mopidy --pre {opts} {packages}
commands =
    py.test \
        --basetemp={envtmpdir} \
        --junit-xml=xunit-{envname}.xml \
        --cov=mopidy_pandora --cov-report=term-missing
deps =
    mock
    mopidy
    pytest
    pytest-capturelog
    pytest-cov
    pytest-xdist
    responses

[testenv:flake8]
skip_install = true
sitepackages = false
deps =
    flake8
    flake8-import-order
    pep8-naming
commands = flake8 --show-source --statistics --max-line-length 120 mopidy_pandora/ setup.py tests/

Add py.test to testenv whitelist to suppress warning message for external command.
Add py.test to testenv whitelist to suppress warning message for external command.
