view pytest.ini @ 8433:c76eb3a60f6f stable

tests: actually test something useful in test_edit for gists (Issue #376) Even though there was a test for editing gists, it did not catch the basic loading problem reported in issue #376. In fact, the test just loaded the edit page, but since no user was actually logged in, it just loaded the login screen. As a result, no real gist editing code was tested at all. Instead, explicitly check the redirection to a login screen, then proceed with logging in and check that the edit page can be loaded. Additionally, don't rely on the magic gist id '1' but create an actual gist first. Note: the test does not yet really edit a gist.
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Sat, 23 May 2020 20:24:07 +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