view pytest.ini @ 8114:2c224062eba7

vcs: fix get_file_annotate - consistently bind sha so it has the right value when executing The Git implementation did *not* save the sha value in the lambda expression for the "changeset lazy loader". Thus, if the generator had moved on and assigned a different value to sha when the expression was executed, it would use the "wrong" sha. Fixed by doing as the Hg implementation: bind the sha value as value of a default parameter when defining the lambda expression. The Hg implementation did however also save the line - it is not used, and there is no need for that.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 25 Dec 2019 15:30:11 +0100
parents afa5e0bdb76f
children
line wrap: on
line source

[pytest]
# only look for tests in kallithea/tests
python_files = kallithea/tests/**/test_*.py
addopts =
    # --verbose
    # show extra test summary info as specified by chars (f)ailed, (E)error, (s)skipped, (x)failed, (X)passed, (w)warnings.
    -rfEsxXw
    # Shorter scrollbacks; less stuff to scroll through
    --tb=short
    #
    --doctest-modules
    --doctest-ignore-import-errors