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_cmdline.py | |
parent | 5a609b662e97b1a3728467d2056ca63e3984af75 (diff) | |
download | python-coveragepy-git-73d5eab6fe1178edecc3eee7645a897db5b8c81f.tar.gz |
Change CoverageData.summary() to CoverageData.line_counts()
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index b616ed51..d73e413e 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -141,8 +141,8 @@ class BaseCmdLineTestTest(BaseCmdLineTest): class FakeCoverageForDebugData(object): """Just enough of a fake coverage package for the 'debug data' tests.""" - def __init__(self, summary, plugin_data=None): - self._summary = summary + def __init__(self, line_counts, plugin_data=None): + self._line_counts = line_counts self._plugin_data = plugin_data or {} self.filename = "FILENAME" self.data = self @@ -162,9 +162,9 @@ class FakeCoverageForDebugData(object): """Fake coverage().data.has_arcs()""" return False - def summary(self, fullpath): # pylint: disable=unused-argument - """Fake coverage().data.summary()""" - return self._summary + def line_counts(self, fullpath): # pylint: disable=unused-argument + """Fake coverage().data.line_counts()""" + return self._line_counts def plugin_data(self): """Fake coverage().data.plugin_data()""" @@ -234,7 +234,7 @@ class CmdLineTest(BaseCmdLineTest): def test_debug_data(self): fake = FakeCoverageForDebugData( - summary={ + line_counts={ 'file1.py': 17, 'file2.py': 23, }, plugin_data={ @@ -253,7 +253,7 @@ class CmdLineTest(BaseCmdLineTest): """)) def test_debug_data_with_no_data(self): - fake = FakeCoverageForDebugData(summary={}) + fake = FakeCoverageForDebugData(line_counts={}) self.command_line("debug data", _covpkg=fake) self.assertMultiLineEqual(self.stdout(), textwrap.dedent("""\ -- data ------------------------------------------------------ |