]> git.ipfire.org Git - thirdparty/httpx.git/commit
Add a network pytest mark for tests that use the network (#1669)
authorAntonio Larrosa <antonio.larrosa@gmail.com>
Fri, 13 Aug 2021 13:13:43 +0000 (15:13 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Aug 2021 13:13:43 +0000 (14:13 +0100)
commit77193b2ab6e7be04bc8793e9fff21c690ac2db12
treee286b9ca264d4c3662202d3774ea9187e324fb25
parentd5143120d10f19cf2876179c9d80eaeac631bb52
Add a network pytest mark for tests that use the network (#1669)

* Add a network pytest mark for tests that use the network

Sometimes it's useful to have the tests that use the network
marked so they can be skipped easily when we know the network
is not available.

This is useful for example on SUSE and openSUSE's build servers.
When building the httpx packages (actually, any package in the
distribution) the network is disabled so we can assure
reproducible builds (among other benefits). With this mark, it's
easier to skip tests that can not succeed.

* Add a better explanation for the network marker

Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Joe <nigelchiang@outlook.com>
Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
setup.cfg
tests/client/test_proxies.py
tests/test_timeouts.py