forked from RedHatQE/openshift-python-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (40 loc) · 895 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[tox]
envlist = validate-resources, tests
skipsdist = True
[testenv:tests]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
CLUSTER = local-cluster
passenv =
KUBECONFIG
commands =
pip install poetry
poetry install
k3d cluster create {env:CLUSTER}
poetry run pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt'
k3d cluster delete {env:CLUSTER}
allowlist_externals =
poetry
k3d
[testenv:validate-resources]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
commands =
pip install poetry
poetry install
poetry run pytest tests/test_validate_resources.py
allowlist_externals =
poetry
[testenv:class-generator]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
deps =
poetry
commands =
poetry install
poetry run pytest -k "test_class_generator or test_camelcase_to_snake"