Add tests for reportchars=a

Ref: https://github.com/pytest-dev/pytest/issues/5066
This commit is contained in:
Daniel Hahler 2019-04-07 18:04:09 +02:00
parent b4b9f788af
commit 50edab8004
1 changed files with 8 additions and 2 deletions

View File

@ -830,14 +830,20 @@ def test_getreportopt():
config.option.reportchars = "sfxw"
assert getreportopt(config) == "sfx"
config.option.reportchars = "sfx"
# Now with --disable-warnings.
config.option.disable_warnings = False
config.option.reportchars = "a"
assert getreportopt(config) == "sxXwEf" # NOTE: "w" included!
config.option.reportchars = "sfx"
assert getreportopt(config) == "sfxw"
config.option.reportchars = "sfxw"
config.option.disable_warnings = False
assert getreportopt(config) == "sfxw"
config.option.reportchars = "a"
assert getreportopt(config) == "sxXwEf" # NOTE: "w" included!
config.option.reportchars = "A"
assert getreportopt(config) == "sxXwEfpP"