| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
With parallel run of tests, one gets "Address already in use" errors
as all tests attempt to bind to the same port. Fix it with a shared
file-system lock.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
The same test utility function is built into pytest. Can avoid the
duplication.
https://docs.pytest.org/en/latest/monkeypatch.html#monkeypatching-environment-variables
|
|
|
|
|
| |
The `unsetenv()` operation does not update `os.environ`.
https://docs.python.org/3/library/os.html#os.unsetenv
|
|\
| |
| | |
linkcheck: Specify subjectAltName in test self-signed certificate
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Clears warning:
tests/test_build_linkcheck.py::test_connect_to_selfsigned_with_tls_cacerts
tests/test_build_linkcheck.py::test_connect_to_selfsigned_with_requests_env_var
…/venv/lib/python3.8/site-packages/urllib3/connection.py:455: SubjectAltNameWarning: Certificate for localhost has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.)
warnings.warn(
|
| |
| |
| |
| | |
Previously, an exception would leave the environment changed.
|
|/
|
|
|
|
|
|
|
|
|
| |
Test `test_connect_to_selfsigned_nonexistent_cert_file` serves two
purposes:
- verify the behavior when the CA bundle file path is incorrect
- flag a leak of REQUESTS_CA_BUNDLE
Assumes that test runs after
`test_connect_to_selfsigned_with_requests_env_var`. Not great, but
better than no testing.
|
| |
|
|
Makes the test more realistic by issuing an HTTP request.
Reduces coupling between test and the code under test.
The `http_server` helper was factored out into a new tests.utils module.
|