Skip to content

Commit

Permalink
client: set SSL_CERT_FILE for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Mar 18, 2021
1 parent 8c0d91b commit d1edfa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mpcontribs-client/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ source = mpcontribs/client
omit = *test_*.py

[testenv]
allowlist_externals = /bin/bash
deps =
pytest
pytest-flake8
pytest-pycodestyle
pytest-cov
-rrequirements.txt
commands = pytest -v -s --flake8 --pycodestyle --cov={envsitepackagesdir}/mpcontribs/client --cov-report=term-missing --cov-report=xml --ignore=bravado
commands =
bash -c 'SSL_CERT_FILE=$(python -m certifi); exec "$@"' _ pytest -v -s --flake8 --pycodestyle --cov={envsitepackagesdir}/mpcontribs/client --cov-report=term-missing --cov-report=xml --ignore=bravado

[testenv:clean]
deps = coverage
Expand Down

0 comments on commit d1edfa5

Please sign in to comment.