From 889b55cf3ec6a497bd7be3dd54b5b7158b3a7a6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 12 May 2019 15:58:11 +0200 Subject: [PATCH] plugins: make it clear the testing is done through Pelican. --- plugins/m/test/__init__.py | 2 +- plugins/m/test/test_abbr.py | 4 ++-- plugins/m/test/test_alias.py | 4 ++-- plugins/m/test/test_code.py | 4 ++-- plugins/m/test/test_components.py | 4 ++-- plugins/m/test/test_dot.py | 4 ++-- plugins/m/test/test_dox.py | 4 ++-- plugins/m/test/test_filesize.py | 4 ++-- plugins/m/test/test_gh.py | 4 ++-- plugins/m/test/test_gl.py | 4 ++-- plugins/m/test/test_htmlsanity.py | 10 +++++----- plugins/m/test/test_images.py | 4 ++-- plugins/m/test/test_link.py | 4 ++-- plugins/m/test/test_math.py | 8 ++++---- plugins/m/test/test_metadata.py | 6 +++--- plugins/m/test/test_plots.py | 4 ++-- plugins/m/test/test_vk.py | 4 ++-- 17 files changed, 39 insertions(+), 39 deletions(-) diff --git a/plugins/m/test/__init__.py b/plugins/m/test/__init__.py index bb6fb4a6..645400f9 100644 --- a/plugins/m/test/__init__.py +++ b/plugins/m/test/__init__.py @@ -28,7 +28,7 @@ import unittest from pelican import read_settings, Pelican -class PluginTestCase(unittest.TestCase): +class PelicanPluginTestCase(unittest.TestCase): def __init__(self, path, dir, *args, **kwargs): unittest.TestCase.__init__(self, *args, **kwargs) # Source files for test_something.py are in something_{dir}/ subdirectory diff --git a/plugins/m/test/test_abbr.py b/plugins/m/test/test_abbr.py index f4e30922..721fbbaa 100644 --- a/plugins/m/test/test_abbr.py +++ b/plugins/m/test/test_abbr.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Abbr(PluginTestCase): +class Abbr(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_alias.py b/plugins/m/test/test_alias.py index f773786e..85fa2bd5 100644 --- a/plugins/m/test/test_alias.py +++ b/plugins/m/test/test_alias.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Alias(PluginTestCase): +class Alias(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_code.py b/plugins/m/test/test_code.py index ad0cb7d4..b49998bb 100644 --- a/plugins/m/test/test_code.py +++ b/plugins/m/test/test_code.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Code(PluginTestCase): +class Code(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_components.py b/plugins/m/test/test_components.py index e8558016..cba039ab 100644 --- a/plugins/m/test/test_components.py +++ b/plugins/m/test/test_components.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Components(PluginTestCase): +class Components(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_dot.py b/plugins/m/test/test_dot.py index 2c9016f2..d50bd487 100644 --- a/plugins/m/test/test_dot.py +++ b/plugins/m/test/test_dot.py @@ -29,12 +29,12 @@ import unittest from distutils.version import LooseVersion -from m.test import PluginTestCase +from . import PelicanPluginTestCase def dot_version(): return re.match(".*version (?P\d+\.\d+\.\d+).*", subprocess.check_output(['dot', '-V'], stderr=subprocess.STDOUT).decode('utf-8').strip()).group('version') -class Dot(PluginTestCase): +class Dot(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_dox.py b/plugins/m/test/test_dox.py index e6c02c84..58c42a7a 100644 --- a/plugins/m/test/test_dox.py +++ b/plugins/m/test/test_dox.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Dox(PluginTestCase): +class Dox(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_filesize.py b/plugins/m/test/test_filesize.py index ab715b46..5793b494 100644 --- a/plugins/m/test/test_filesize.py +++ b/plugins/m/test/test_filesize.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Filesize(PluginTestCase): +class Filesize(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_gh.py b/plugins/m/test/test_gh.py index fb2dfee8..61298f79 100644 --- a/plugins/m/test/test_gh.py +++ b/plugins/m/test/test_gh.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Gh(PluginTestCase): +class Gh(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_gl.py b/plugins/m/test/test_gl.py index 8fa8ea5f..a12e595c 100644 --- a/plugins/m/test/test_gl.py +++ b/plugins/m/test/test_gl.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Gl(PluginTestCase): +class Gl(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_htmlsanity.py b/plugins/m/test/test_htmlsanity.py index 90efe87c..b210f50c 100644 --- a/plugins/m/test/test_htmlsanity.py +++ b/plugins/m/test/test_htmlsanity.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Content(PluginTestCase): +class Content(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'content', *args, **kwargs) @@ -39,7 +39,7 @@ class Content(PluginTestCase): # Verify there's no superfluous markup or useless classes self.assertEqual(*self.actual_expected_contents('page.html')) -class Typography(PluginTestCase): +class Typography(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'typography', *args, **kwargs) @@ -89,7 +89,7 @@ class Typography(PluginTestCase): self.assertEqual(*self.actual_expected_contents('category-a-category.html')) self.assertEqual(*self.actual_expected_contents('tag-tagging-a-name.html')) -class TypographyGlobalLang(PluginTestCase): +class TypographyGlobalLang(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'typography_global_lang', *args, **kwargs) @@ -110,7 +110,7 @@ class TypographyGlobalLang(PluginTestCase): # be at proper places and not where it shouldn't be. self.assertEqual(*self.actual_expected_contents('page.html')) -class RenderRst(PluginTestCase): +class RenderRst(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'parse_error', *args, **kwargs) diff --git a/plugins/m/test/test_images.py b/plugins/m/test/test_images.py index 8dd0ea31..0233c5dd 100644 --- a/plugins/m/test/test_images.py +++ b/plugins/m/test/test_images.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Images(PluginTestCase): +class Images(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_link.py b/plugins/m/test/test_link.py index 8c0f14ce..acd62f72 100644 --- a/plugins/m/test/test_link.py +++ b/plugins/m/test/test_link.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from . import PluginTestCase +from . import PelicanPluginTestCase -class Link(PluginTestCase): +class Link(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_math.py b/plugins/m/test/test_math.py index be3aa3a5..59ea68fe 100644 --- a/plugins/m/test/test_math.py +++ b/plugins/m/test/test_math.py @@ -32,9 +32,9 @@ from hashlib import sha1 from distutils.version import LooseVersion -from . import PluginTestCase +from . import PelicanPluginTestCase -class Math(PluginTestCase): +class Math(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) @@ -105,7 +105,7 @@ fermat = """ """ -class Cached(PluginTestCase): +class Cached(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'cached', *args, **kwargs) @@ -136,7 +136,7 @@ class Cached(PluginTestCase): fermat_hash: (6, 0.0, fermat)}) self.assertEqual(math_cache_actual, math_cache_expected) -class Uncached(PluginTestCase): +class Uncached(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'uncached', *args, **kwargs) diff --git a/plugins/m/test/test_metadata.py b/plugins/m/test/test_metadata.py index 2eb95f9f..44e1a574 100644 --- a/plugins/m/test/test_metadata.py +++ b/plugins/m/test/test_metadata.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Metadata(PluginTestCase): +class Metadata(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) @@ -62,7 +62,7 @@ class Metadata(PluginTestCase): self.assertEqual(*self.actual_expected_contents('tag-a-tag.html')) self.assertEqual(*self.actual_expected_contents('tag-minimal-tag.html')) -class TypographyHtmlEscape(PluginTestCase): +class TypographyHtmlEscape(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'typography_html_escape', *args, **kwargs) diff --git a/plugins/m/test/test_plots.py b/plugins/m/test/test_plots.py index dbf7fdd2..3660abaa 100644 --- a/plugins/m/test/test_plots.py +++ b/plugins/m/test/test_plots.py @@ -25,9 +25,9 @@ import os import unittest -from . import PluginTestCase +from . import PelicanPluginTestCase -class Plots(PluginTestCase): +class Plots(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) diff --git a/plugins/m/test/test_vk.py b/plugins/m/test/test_vk.py index 942aa742..8fe030f1 100644 --- a/plugins/m/test/test_vk.py +++ b/plugins/m/test/test_vk.py @@ -22,9 +22,9 @@ # DEALINGS IN THE SOFTWARE. # -from m.test import PluginTestCase +from . import PelicanPluginTestCase -class Vk(PluginTestCase): +class Vk(PelicanPluginTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) -- 2.30.2