Revision cc29708564c35575f569e863f028a480a9905cf4 authored by Antoine Lambert on 16 January 2020, 16:16:09 UTC, committed by Antoine Lambert on 16 January 2020, 16:53:22 UTC
Some objects (directories, origins, releases, revisions) will not be added
into the storage if they are provided as generator parameters to the *_add
methods instead of lists.

So ensure to transform generators into lists before processing the objects.
1 parent 8dcac2b
Raw File
tox.ini
[tox]
envlist=flake8,mypy,py3

[testenv]
extras =
  testing
deps =
  pytest-cov
  dev: ipdb
commands =
  pytest \
    !slow: --hypothesis-profile=fast \
    slow:  --hypothesis-profile=slow \
         --cov={envsitepackagesdir}/swh/storage \
         {envsitepackagesdir}/swh/storage \
         --doctest-modules \
         --cov-branch {posargs}

[testenv:flake8]
skip_install = true
deps =
  flake8
commands =
  {envpython} -m flake8

[testenv:mypy]
extras =
  testing
deps =
  mypy
commands =
  mypy swh
back to top