summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-01-24 11:38:49 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-01-24 11:38:49 -0500
commita5e806e65bb5a666866245af91c9a8c887324e91 (patch)
treec692a622c41f10d5a8fe442b0fc74aa1491ffe94 /tests/test_plugins.py
parentd2c87fd4a23ef71f13d6e90aca98585ac515d551 (diff)
downloadpython-coveragepy-git-a5e806e65bb5a666866245af91c9a8c887324e91.tar.gz
Change sysinfo to sys_info
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 5485005b..2a8b089d 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -137,30 +137,30 @@ class PluginTest(CoverageTest):
cov.start()
cov.stop()
- def test_plugin_sysinfo(self):
- self.make_file("plugin_sysinfo.py", """\
+ def test_plugin_sys_info(self):
+ self.make_file("plugin_sys_info.py", """\
import coverage
class Plugin(coverage.CoveragePlugin):
- def sysinfo(self):
+ def sys_info(self):
return [("hello", "world")]
""")
debug_out = StringIO()
cov = coverage.Coverage(debug=["sys"])
cov._debug_file = debug_out
- cov.config["run:plugins"] = ["plugin_sysinfo"]
+ cov.config["run:plugins"] = ["plugin_sys_info"]
cov.load()
out_lines = debug_out.getvalue().splitlines()
expected_end = [
- "-- sys: plugin_sysinfo ---------------------------------------",
+ "-- sys: plugin_sys_info --------------------------------------",
" hello: world",
"-- end -------------------------------------------------------",
]
self.assertEqual(expected_end, out_lines[-len(expected_end):])
- def test_plugin_with_no_sysinfo(self):
- self.make_file("plugin_no_sysinfo.py", """\
+ def test_plugin_with_no_sys_info(self):
+ self.make_file("plugin_no_sys_info.py", """\
import coverage
class Plugin(coverage.CoveragePlugin):
@@ -169,12 +169,12 @@ class PluginTest(CoverageTest):
debug_out = StringIO()
cov = coverage.Coverage(debug=["sys"])
cov._debug_file = debug_out
- cov.config["run:plugins"] = ["plugin_no_sysinfo"]
+ cov.config["run:plugins"] = ["plugin_no_sys_info"]
cov.load()
out_lines = debug_out.getvalue().splitlines()
expected_end = [
- "-- sys: plugin_no_sysinfo ------------------------------------",
+ "-- sys: plugin_no_sys_info -----------------------------------",
"-- end -------------------------------------------------------",
]
self.assertEqual(expected_end, out_lines[-len(expected_end):])