File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
- mock==2.0.0
2
- pytest>3.6,<4.0
1
+ mock~=3.0.0
2
+ pytest>=4.0,<6.0;python_version>='3.5'
3
+ pytest>=4.0,<5.0;python_version=='2.7'
4
+ pytest-cov>=2.7,<3.0
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ basepython = python3
8
8
deps =
9
9
-r{toxinidir}/test-requirements.txt
10
10
commands =
11
- pytest -Wall {posargs}
11
+ pytest -Wall -- cov =git_pw --cov-report term-missing {posargs}
12
12
13
13
[testenv:pep8]
14
14
skip_install = true
23
23
commands =
24
24
mypy {posargs:--ignore-missing-imports --follow-imports =skip} git_pw
25
25
26
+ [testenv:report]
27
+ skip_install = true
28
+ deps =
29
+ coverage
30
+ commands =
31
+ coverage report
32
+ coverage html
33
+
34
+ [testenv:clean]
35
+ envdir = {toxworkdir}/report
36
+ skip_install = true
37
+ deps =
38
+ {[testenv:report]deps}
39
+ commands =
40
+ coverage erase
41
+
26
42
[testenv:docs]
27
43
deps =
28
44
-r{toxinidir}/docs/requirements.txt
You can’t perform that action at this time.
0 commit comments