[TIP] Converting a project from setup.py test to py.test

Paul Moore p.f.moore at gmail.com
Mon Jul 28 14:03:03 PDT 2014

On 28 July 2014 21:37, Paul Moore <p.f.moore at gmail.com> wrote:
> I tried what I thought was the obvious approach, changing tox.ini to have
> [testenv:py27, pypy]
> commands = py.test {toxinidir}/tests {posargs}
> deps = pytest mock

Apparently, the syntax [testenv:py27, pypy] is wrong. And the
dependencies must be on separate lines.

commands = py.test {toxinidir}/tests {posargs}
deps = pytest

I've no idea how that section header worked in the original version.
And that multi-line syntax is a bit weird (but I guess it's
configparser that's to blame for that one :-))


More information about the testing-in-python mailing list