bind9/bin/tests/system/statschannel
Michał Kępień dbddc22187 Fix skipping tests requiring the requests module
The intended purpose of the @pytest.mark.requests decorator was to cause
Python-based parts of the "statschannel" system test to be skipped if
the requests Python module is not available.  However, both
tests-json.py and tests-xml.py contain a global "import requests"
statement which triggers ImportError exceptions during test
initialization if the requests module is not available.  In other words,
the @pytest.mark.requests decorator serves no useful purpose.

Since all tests in both tests-json.py and tests-xml.py depend on the
requests Python module, employ pytest.importorskip() to ensure the
Python-based parts of the "statschannel" system test are skipped when
the requests module is not available.  Remove all occurrences of the
@pytest.mark.requests decorator (and all associated code) to prevent
confusion.

(cherry picked from commit 704ad2907f)
2022-03-14 09:04:10 +01:00
..
ns1 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ns2 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ns3 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
.gitignore Disable pytest cacheprovider plugin in CI 2021-04-29 15:29:18 +02:00
clean.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
conftest.py Fix skipping tests requiring the requests module 2022-03-14 09:04:10 +01:00
fetch.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
generic.py Refactor "statschannel" test's helper modules 2022-03-14 09:04:10 +01:00
generic_dnspython.py Refactor "statschannel" test's helper modules 2022-03-14 09:04:10 +01:00
mem-xml.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
send64k.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
server-json.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
server-xml.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
setup.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tests-json.py Fix skipping tests requiring the requests module 2022-03-14 09:04:10 +01:00
tests-xml.py Fix skipping tests requiring the requests module 2022-03-14 09:04:10 +01:00
tests.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
traffic-json.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
traffic-xml.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
traffic.expect.1 [master] traffic size stats 2015-07-06 22:29:06 -07:00
traffic.expect.2 [master] traffic size stats 2015-07-06 22:29:06 -07:00
traffic.expect.4 [master] traffic size stats 2015-07-06 22:29:06 -07:00
traffic.expect.5 [master] cacluate TCP packet sizes correctly 2016-01-20 17:30:27 -08:00
traffic.expect.6 [master] cacluate TCP packet sizes correctly 2016-01-20 17:30:27 -08:00
zones-json.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
zones-xml.pl Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00