Avoid test failures with SSL proxies

Adds variables that do tell various libraries about custom CA used
by SSL proxies.

Avoids errors like:

   Could not fetch URL https://pypi.org/simple/mypy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mypy/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:
This commit is contained in:
Sorin Sbarnea 2019-11-01 10:42:26 +00:00
parent b14d47b356
commit e2aafe6187

View file

@ -11,6 +11,10 @@ commands =
coverage run -m pytest {posargs}
coverage combine
coverage report
passenv =
CURL_CA_BUNDLE
REQUESTS_CA_BUNDLE
SSL_CERT_FILE
[testenv:venv]
deps =