Skip to content

Commit

Permalink
* fix pytest config in different python version
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 committed Nov 27, 2023
1 parent dcc6f30 commit 4a9324a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions py36_pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
render_collapsed = True
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ deps = pytest
commands =
{toxinidir}/terraform_test_artifacts/terraform_install.sh
find . -type f -name "*.pyc" -delete
pytest {posargs}
pytest -c {env:PYTEST_CONFIG:{toxinidir}/tox.ini} {posargs}
allowlist_externals = {toxinidir}/*,bash,find
passenv = http_proxy,HTTP_PROXY,https_proxy,HTTPS_PROXY,no_proxy,NO_PROXY,PBR_VERSION

Expand All @@ -28,3 +28,7 @@ max-line-length = 99

[pytest]
render_collapsed = all

[testenv:py36]
setenv =
PYTEST_CONFIG = {toxinidir}/py36_pytest.ini

0 comments on commit 4a9324a

Please sign in to comment.