diff --git a/pytest.ini b/pytest.ini index ced65979b1..e397e9e4c3 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,9 @@ [pytest] +# +testpaths = httpie tests +norecursedirs = tests/fixtures +addopts = --tb=native --doctest-modules --verbose +xfail_strict = True markers = # If you want to run tests without a full HTTPie installation # we advise you to disable the markers below, e.g: diff --git a/setup.cfg b/setup.cfg index 85490981aa..6960ad56fd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,13 +5,6 @@ [wheel] -[tool:pytest] -# -testpaths = httpie tests -norecursedirs = tests/fixtures -addopts = --tb=native --doctest-modules --verbose -xfail_strict = True - [metadata] name = httpie version = attr: httpie.__version__ diff --git a/tests/test_output.py b/tests/test_output.py index 2242177dbc..e90db06ab8 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -98,7 +98,7 @@ def test_quiet_quiet_with_check_status_non_zero_pipe(self, httpbin): (['-qq'], 0), ]) # Might fail on Windows due to interference from other warnings. - @pytest.mark.xfail + @pytest.mark.xfail(strict=False) def test_quiet_on_python_warnings(self, test_patch, httpbin, flags, expected_warnings): def warn_and_run(*args, **kwargs): warnings.warn('warning!!')