diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-16 15:41:15 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-16 15:41:15 -0400 |
commit | 73d5eab6fe1178edecc3eee7645a897db5b8c81f (patch) | |
tree | 9e86e4ebc1b004d7951b8ed70e609d9e23fff67d /tests/test_plugins.py | |
parent | 5a609b662e97b1a3728467d2056ca63e3984af75 (diff) | |
download | python-coveragepy-git-73d5eab6fe1178edecc3eee7645a897db5b8c81f.tar.gz |
Change CoverageData.summary() to CoverageData.line_counts()
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r-- | tests/test_plugins.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 2f58eceb..26649a39 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -366,20 +366,20 @@ class GoodPluginTest(FileTracerTest): _, statements, missing, _ = cov.analysis("foo_7.html") self.assertEqual(statements, [1, 2, 3, 4, 5, 6, 7]) self.assertEqual(missing, [1, 2, 3, 6, 7]) - self.assertIn("foo_7.html", cov.data.summary()) + self.assertIn("foo_7.html", cov.data.line_counts()) _, statements, missing, _ = cov.analysis("bar_4.html") self.assertEqual(statements, [1, 2, 3, 4]) self.assertEqual(missing, [1, 4]) - self.assertIn("bar_4.html", cov.data.summary()) + self.assertIn("bar_4.html", cov.data.line_counts()) - self.assertNotIn("quux_5.html", cov.data.summary()) + self.assertNotIn("quux_5.html", cov.data.line_counts()) if env.PY2: _, statements, missing, _ = cov.analysis("uni_3.html") self.assertEqual(statements, [1, 2, 3]) self.assertEqual(missing, [1]) - self.assertIn("uni_3.html", cov.data.summary()) + self.assertIn("uni_3.html", cov.data.line_counts()) def test_plugin2_with_branch(self): self.make_render_and_caller() |