* 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>
29 lines
688 B
INI
29 lines
688 B
INI
[flake8]
|
|
ignore = W503, E203, B305
|
|
max-line-length = 120
|
|
|
|
[mypy]
|
|
disallow_untyped_defs = True
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-tests.*]
|
|
disallow_untyped_defs = False
|
|
check_untyped_defs = True
|
|
|
|
[tool:isort]
|
|
profile = black
|
|
combine_as_imports = True
|
|
|
|
[tool:pytest]
|
|
addopts = -rxXs
|
|
filterwarnings =
|
|
error
|
|
default:::uvicorn
|
|
markers =
|
|
copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup
|
|
network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled.
|
|
|
|
[coverage:run]
|
|
omit = venv/*, httpx/_compat.py
|
|
include = httpx/*, tests/*
|