forked from RedHatQE/openshift-python-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (43 loc) · 767 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
44
45
46
47
[tox]
envlist = py{38,39,310,311}, unittests, validate-resources
skipsdist = True
[flake8]
[testenv]
setenv = PYTHONPATH = {toxinidir}
deps =
pre-commit
commands =
pre-commit run --all-files
[testenv:tests]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
deps =
pytest
commands =
pip install .
pip install jinja2 PyYaml
pytest tests
[testenv:unittests]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest
commands =
pip install .
pytest tests/unittests
[testenv:validate-resources]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
deps =
pytest
requests
commands =
pip install .
pytest tests/test_validate_resources.py