Skip to content

Commit

Permalink
Poetry update fix tomlkit v4.14 v4.13 (#1312) (#1314)
Browse files Browse the repository at this point in the history
* Update poetry to fix tomlkit issue (#1306) (#1310)

* Update poetry to fix tomlkit issue (#1306)

* Update poetry to fix tomlkit issue

* tox: use pip to install poetry

* fix poetry.lock file

* poetry add pytest

* Fix poetry lock file

* Fix poetry lock file

Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
  • Loading branch information
redhat-qe-bot and myakove authored Jul 27, 2023
1 parent 49b0c51 commit 30f4cac
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 26 deletions.
85 changes: 74 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Download = "https://pypi.org/project/openshift-python-wrapper/"
[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.13"


[tool.poetry.group.tests.dependencies]
pytest = "^7.4.0"

[tool.poetry-dynamic-versioning.substitution]
files = ["VERSION"]

Expand Down
31 changes: 16 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,39,310,311}, unittests, validate-resources
envlist = py{38,39,310,311}, unittests, validate-resources, tests
skipsdist = True

[flake8]
Expand All @@ -16,32 +16,33 @@ setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
deps =
pytest
commands =
pip install .
pip install jinja2 PyYaml
pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt'
pip install poetry
poetry install
poetry run pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt'
allowlist_externals =
poetry

[testenv:unittests]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest
commands =
pip install .
pytest tests/unittests
pip install poetry
poetry install
poetry run pytest -o log_cli=true tests/unittests
allowlist_externals =
poetry

[testenv:validate-resources]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
deps =
pytest
requests
commands =
pip install .
pytest tests/test_validate_resources.py
pip install poetry
poetry install
poetry run pytest tests/test_validate_resources.py
allowlist_externals =
poetry

0 comments on commit 30f4cac

Please sign in to comment.