mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-28 12:31:29 -05:00
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
|
||
|---|---|---|
| .. | ||
| ns1 | ||
| ns2 | ||
| ns3 | ||
| .gitignore | ||
| clean.sh | ||
| conftest.py | ||
| fetch.pl | ||
| generic.py | ||
| generic_dnspython.py | ||
| mem-xml.pl | ||
| send64k.pl | ||
| server-json.pl | ||
| server-xml.pl | ||
| setup.sh | ||
| tests-json.py | ||
| tests-xml.py | ||
| tests.sh | ||
| traffic-json.pl | ||
| traffic-xml.pl | ||
| traffic.expect.1 | ||
| traffic.expect.2 | ||
| traffic.expect.4 | ||
| traffic.expect.5 | ||
| traffic.expect.6 | ||
| zones-json.pl | ||
| zones-xml.pl | ||