view pytest.ini @ 8462:b27584990c2c stable

tests: add coverage of Git pullrequests Git is so different than Mercurial that it is easier to use separate tests. Some of the tests that are relevant for Mercurial doesn't apply to the Git support. Also fix crash an odd corner case of creating PRs from a repo that has no branches at all.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 26 Sep 2020 17:33:18 +0200
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