File tree Expand file tree Collapse file tree 6 files changed +35
-3
lines changed Expand file tree Collapse file tree 6 files changed +35
-3
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ source =
3
+ .
4
+ omit =
5
+ .tox/*
6
+ .paasta/*
7
+ tests/*
8
+ setup.py
9
+
10
+ [report]
11
+
12
+ exclude_lines =
13
+ # Have to re-enable the standard pragma
14
+ \# \s*pragma: no cover
15
+
16
+ # Don't complain if tests don't hit defensive assertion code:
17
+ ^\s*raise AssertionError\b
18
+ ^\s*raise NotImplementedError\b
19
+ ^\s*return NotImplemented\b
20
+ ^\s*raise$
21
+
22
+ # Don't complain if non-runnable code isn't run:
23
+ ^if __name__ == [' "]__main__[' " ]:$
Original file line number Diff line number Diff line change @@ -46,3 +46,6 @@ example_cluster/paasta/docker_registry.json
46
46
general_itests /fake_etc_paasta /clusters.json
47
47
pip-wheel-metadata
48
48
debian /debhelper-build-stamp
49
+
50
+ # Coverage artifacts
51
+ .coverage
Original file line number Diff line number Diff line change 1
1
astroid
2
2
asynctest
3
+ coverage
3
4
docutils
4
5
flake8
5
6
freezegun
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ astroid==2.4.2
5
5
asynctest == 0.12.0
6
6
Babel == 2.9.1
7
7
cfgv == 2.0.1
8
+ coverage == 6.5.0
8
9
distlib == 0.3.4
9
10
filelock == 3.0.12
10
11
flake8 == 3.5.0
Original file line number Diff line number Diff line change @@ -1668,7 +1668,7 @@ def test_get_marathon_client(self):
1668
1668
)
1669
1669
args , kwargs = client_patch .call_args
1670
1670
assert "User-Agent" in kwargs ["session" ].headers
1671
- assert "py. test" in kwargs ["session" ].headers ["User-Agent" ]
1671
+ assert "test" in kwargs ["session" ].headers ["User-Agent" ]
1672
1672
1673
1673
def test_list_all_marathon_app_ids (self ):
1674
1674
fakeapp1 = mock .Mock (id = "/fake_app1" )
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ commands =
59
59
check-requirements -vv
60
60
pre-commit install -f --install-hooks
61
61
pre-commit run --all-files
62
- py.test {posargs:tests}
62
+ coverage erase
63
+ coverage run -m py.test {posargs:tests}
64
+ coverage report -m
63
65
64
66
[testenv:tests-yelpy]
65
67
envdir = .tox/py37-linux/
@@ -72,7 +74,9 @@ commands =
72
74
check-requirements -vv
73
75
pre-commit install -f --install-hooks
74
76
pre-commit run --all-files
75
- py.test {posargs:tests}
77
+ coverage erase
78
+ coverage run -m py.test {posargs:tests}
79
+ coverage report -m
76
80
77
81
[testenv:docs]
78
82
commands =
You can’t perform that action at this time.
0 commit comments