Revision 758eb885d38fb3fd51871b5171d3056b0ac8ae27 authored by Valentin Lorentz on 19 February 2021, 09:29:03 UTC, committed by Valentin Lorentz on 19 February 2021, 09:48:42 UTC
Depending on the order in which tests are run, these tests may insert lambdas with mocked blake2 functions in their closure to be inserted in hashutil._blake2_hash_cache; causing all future tests to fail. While this does not happen with the default order of tests, it does when using pytest-xdist.
1 parent 0c16581
tox.ini
[tox]
envlist=black,flake8,mypy,py3
[testenv]
extras =
testing
deps =
pytest-cov
commands =
pytest --cov={envsitepackagesdir}/swh/model \
{envsitepackagesdir}/swh/model \
--cov-branch {posargs}
[testenv:black]
skip_install = true
deps =
black==19.10b0
commands =
{envpython} -m black --check swh
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
{envpython} -m flake8
[testenv:mypy]
extras =
testing
deps =
mypy
commands =
mypy swh
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...