summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-12-26 22:56:57 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-12-26 22:56:57 -0500
commit1866c821c1d9f1ec823811815d813f9821f5bf47 (patch)
tree951e886cd3140d46c463cd9cec4d0bb370c5d30b /tests
parente7d0f66fb5f7eebe647f8b16670cb0fbde6b2c1f (diff)
downloadpython-coveragepy-1866c821c1d9f1ec823811815d813f9821f5bf47.tar.gz
There will be other kinds of plugins
Diffstat (limited to 'tests')
-rw-r--r--tests/plugin1.py4
-rw-r--r--tests/plugin2.py4
-rw-r--r--tests/test_plugins.py8
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py
index 4276995..e03dadf 100644
--- a/tests/plugin1.py
+++ b/tests/plugin1.py
@@ -1,7 +1,7 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
-"""A plugin for test_plugins.py to import."""
+"""A file tracer plugin for test_plugins.py to import."""
import os.path
@@ -9,7 +9,7 @@ import coverage
class Plugin(coverage.CoveragePlugin):
- """A plugin to import, so that it isn't in the test's current directory."""
+ """A file tracer plugin to import, so that it isn't in the test's current directory."""
def file_tracer(self, filename):
"""Trace only files named xyz.py"""
diff --git a/tests/plugin2.py b/tests/plugin2.py
index 9651ce6..c1ab1c2 100644
--- a/tests/plugin2.py
+++ b/tests/plugin2.py
@@ -1,7 +1,7 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
-"""A plugin for test_plugins.py to import."""
+"""A file tracer plugin for test_plugins.py to import."""
import os.path
@@ -9,7 +9,7 @@ import coverage
class Plugin(coverage.CoveragePlugin):
- """A plugin for testing."""
+ """A file tracer plugin for testing."""
def file_tracer(self, filename):
if "render.py" in filename:
return RenderFileTracer()
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 5486216..4dfe0bd 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -271,8 +271,8 @@ class FileTracerTest(CoverageTest):
self.skipTest("Plugins are only supported with the C tracer.")
-class GoodPluginTest(FileTracerTest):
- """Tests of plugin happy paths."""
+class GoodFileTracerTest(FileTracerTest):
+ """Tests of file tracer plugin happy paths."""
def test_plugin1(self):
self.make_file("simple.py", """\
@@ -558,8 +558,8 @@ class GoodPluginTest(FileTracerTest):
cov.analysis("fictional.py")
-class BadPluginTest(FileTracerTest):
- """Test error handling around plugins."""
+class BadFileTracerTest(FileTracerTest):
+ """Test error handling around file tracer plugins."""
def run_plugin(self, module_name):
"""Run a plugin with the given module_name.