Revision 1a8924be8f7da912cc4bcd6ce2f749b9454dcbad authored by Antoine R. Dumont (@ardumont) on 11 July 2020, 06:42:17 UTC, committed by Antoine R. Dumont (@ardumont) on 11 July 2020, 06:52:26 UTC
In the end, the order of the revision entry matters whether we select * or not.
So the select must match the order defined in the revision_entry type type.
Otherwise, a mismatch type error occurs [1]

[1] psql:sql/upgrades/158.sql:74: ERROR: return type mismatch in function
declared to return revision_entry
1 parent 9219a23
Raw File
tox.ini
[tox]
envlist=black,flake8,mypy,py3

[testenv]
extras =
  testing
deps =
  pytest-cov
  dev: ipdb
passenv =
  LOG_CASSANDRA
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