summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorJudson Neer <judson.neer@gmail.com>2021-01-05 08:53:19 -0800
committerNed Batchelder <ned@nedbatchelder.com>2021-01-06 13:50:13 -0500
commit051bdf23b5d86a15ada43523c00f8f3462063ad6 (patch)
tree5a726432bb9793a1fef67bb827402667c6ff5763 /tests/test_api.py
parent7ff93a9740da5dec4eba6c6cad288d25a472d75a (diff)
downloadpython-coveragepy-git-051bdf23b5d86a15ada43523c00f8f3462063ad6.tar.gz
Always output TOTAL line.
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 3552f8f4..f8b7b4b2 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -306,9 +306,11 @@ class ApiTest(CoverageTest):
# Name Stmts Miss Cover
# --------------------------------
# foo/bar.py 1 1 0%
+ # --------------------------------
+ # TOTAL 1 1 0%
- last = self.last_line_squeezed(self.stdout()).replace("\\", "/")
- self.assertEqual("foo/bar.py 1 1 0%", last)
+ last = self.last_line_squeezed(self.stdout())
+ self.assertEqual("TOTAL 1 1 0%", last)
def test_cov4_data_file(self):
cov4_data = (
@@ -587,6 +589,8 @@ class ApiTest(CoverageTest):
Name Stmts Miss Cover
---------------------------
b.py 1 0 100%
+ ---------------------------
+ TOTAL 1 0 100%
""")
self.assertEqual(expected, self.stdout())
@@ -1049,6 +1053,8 @@ class TestRunnerPluginTest(CoverageTest):
Name Stmts Miss Cover Missing
--------------------------------------------
no_biggie.py 4 1 75% 4
+ --------------------------------------------
+ TOTAL 4 1 75%
"""))
if cd:
os.chdir("..")
@@ -1092,6 +1098,8 @@ class TestRunnerPluginTest(CoverageTest):
Name Stmts Miss Cover
-----------------------------
prog.py 4 1 75%
+ -----------------------------
+ TOTAL 4 1 75%
"""))
self.assert_file_count(".coverage", 0)
self.assert_file_count(".coverage.*", 1)