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
commitef4e10733ccaae905b7a8fdb0b69001f52fdcc8b (patch)
treecaab0d7ee3d54ee34c9fcc9915561bcac79885e4 /tests
parentd8950b6509f5a09cdd2ac4581643d7bac6b3841b (diff)
downloadpython-coveragepy-git-ef4e10733ccaae905b7a8fdb0b69001f52fdcc8b.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 42769950..e03dadf1 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 9651ce63..c1ab1c23 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 5486216a..4dfe0bde 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.