From: Vladimír Vondruš Date: Mon, 11 Dec 2017 02:02:40 +0000 (+0100) Subject: m.gh: initial test. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=d235a684e589fb89c8aee0a6227aaf022bbd8b49;p=blog.git m.gh: initial test. --- diff --git a/pelican-plugins/m/test/gh/page.html b/pelican-plugins/m/test/gh/page.html new file mode 100644 index 00000000..d5a947f3 --- /dev/null +++ b/pelican-plugins/m/test/gh/page.html @@ -0,0 +1,51 @@ + + + + + m.gh | A Pelican Blog + + + + + + + + + + + + + +
+
+ +
+ + \ No newline at end of file diff --git a/pelican-plugins/m/test/gh/page.rst b/pelican-plugins/m/test/gh/page.rst new file mode 100644 index 00000000..0d278371 --- /dev/null +++ b/pelican-plugins/m/test/gh/page.rst @@ -0,0 +1,12 @@ +m.gh +#### + +- Profile link: :gh:`mosra` +- Repository link: :gh:`mosra/m.css` +- Commit link: :gh:`mosra/m.css@4d362223f107cffd8731a0ea031f9353a0a2c7c4` +- Issue/PR link: :gh:`mosra/magnum#123` +- Tree link: :gh:`mosra/m.css$next` +- Tag link: :gh:`mosra/magnum^snapshot-2015-05` +- File link: :gh:`mosra/m.css$master/css/m-dark.css` +- Arbitrary link: :gh:`mosra/magnum/graphs/contributors` +- :gh:`Link with custom title ` diff --git a/pelican-plugins/m/test/test_gh.py b/pelican-plugins/m/test/test_gh.py new file mode 100644 index 00000000..78b03926 --- /dev/null +++ b/pelican-plugins/m/test/test_gh.py @@ -0,0 +1,12 @@ +from m.test import PluginTestCase + +class Gh(PluginTestCase): + def __init__(self, *args, **kwargs): + super().__init__(__file__, '', *args, **kwargs) + + def test(self): + self.run_pelican({ + 'PLUGINS': ['m.htmlsanity', 'm.gh'] + }) + + self.assertEqual(*self.actual_expected_contents('page.html'))