https://github.com/SoftwareHeritage/swh-storage
Revision a5232b7a7bcd8e6727876eab907024ea9da55f0b authored by Antoine R. Dumont (@ardumont) on 04 August 2020, 10:40:24 UTC, committed by Antoine R. Dumont (@ardumont) on 04 August 2020, 11:34:48 UTC
This fixes the current directory listing tests coverage to check down to the
contents.

This also fixes one inconsistent test data and the tests impacted by this
change.
1 parent 15e8c99
Raw File
Tip revision: a5232b7a7bcd8e6727876eab907024ea9da55f0b authored by Antoine R. Dumont (@ardumont) on 04 August 2020, 10:40:24 UTC
tests: Improve coverage on directory_ls endpoints
Tip revision: a5232b7
tox.ini
[tox]
envlist=black,flake8,mypy,py3

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

[testenv:black]
skip_install = true
deps =
  black
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
back to top