view pytest.ini @ 6478:c0b2410d63a5

search: prevent username related conditions from removing "stop words" Before this revision, username related conditions below cause unintentional ignorance of "stop words". - owner: (for all) - author: (for "Commit messages") Therefore, username related conditions with "this", "a", "you", and so on are completely ignored, even if they are valid username components. To prevent username related conditions from removing "stop words", this revision explicitly specifies "analyzer" for username related fields of SCHEMA and CHGSETS_SCHEMA. Difference between EMAILADDRANALYZER and default analyzer of TEXT is whether "stop words" are preserved or not. Tokenization is still applied on usernames. For future changing, this revision doesn't make EMAILADDRANALYZER share analyzer definition with PATHANALYZER, even though their definitions are identical with each other at this revision. This revision requires full re-building index tables, because indexing schemas are changed. Original patch has been modified by Mads Kiilerich - tests of 'owner' will be addressed separately.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 23 Jan 2017 02:17:38 +0900
parents d88077fae3d6
children afa5e0bdb76f
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