-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathtox.ini
More file actions
56 lines (47 loc) · 1009 Bytes
/
tox.ini
File metadata and controls
56 lines (47 loc) · 1009 Bytes
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
48
49
50
51
52
53
54
55
56
; tox configuration for VinylDNS Python project, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
[tox]
envlist =
clean,
check,
py3,
report,
func_test
[testenv]
basepython = python3
usedevelop = true
setenv =
PYTHONPATH={toxinidir}/src
PYTHONUNBUFFERED=yes
deps =
pytest>=7,<9
pytest-cov>=4
responses
python-dateutil
botocore>=1.42.97
commands =
pytest --cov=vinyldns --cov-report=xml --cov-report=term-missing -vv tests
[testenv:check]
deps =
flake8>=6.1,<8
skip_install = true
commands =
flake8 src tests setup.py
[testenv:report]
deps = coverage>=7.3
skip_install = true
commands =
coverage report
coverage html
[testenv:clean]
commands = coverage erase
deps = coverage>=7.3
skip_install = true
[testenv:func_test]
commands_pre =
bash -c ./docker/docker-up-vinyldns.sh
commands_post =
bash -c ./docker/remove-vinyl-containers.sh
commands =
pytest -vv func_tests
allowlist_externals =
bash