view tox.ini @ 5806:f33cc4af706b

tests: finally block also needs to be executed if api_call itself fails The cleanup code (finally block) should be executed as soon as something what changes the db fails. I don't remember which one but one of these tests failed and caused all the others to fail as well because the database wasn't cleaned up after the first failure. That made finding the root cause more difficult then it should have been.
author domruf <dominikruf@gmail.com>
date Tue, 12 Apr 2016 22:45:46 +0200
parents 6a83b399bb3c
children b2195895bbd7
line wrap: on
line source

[tox]
minversion = 1.8
envlist = py{26,27}-pytest

[testenv]
setenv =
    PYTHONHASHSEED = 0
deps =
    pytest: pytest
commands =
    pytest: py.test {posargs}