From d235a684e589fb89c8aee0a6227aaf022bbd8b49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 Dec 2017 03:02:40 +0100 Subject: [PATCH] m.gh: initial test. --- pelican-plugins/m/test/gh/page.html | 51 +++++++++++++++++++++++++++++ pelican-plugins/m/test/gh/page.rst | 12 +++++++ pelican-plugins/m/test/test_gh.py | 12 +++++++ 3 files changed, 75 insertions(+) create mode 100644 pelican-plugins/m/test/gh/page.html create mode 100644 pelican-plugins/m/test/gh/page.rst create mode 100644 pelican-plugins/m/test/test_gh.py 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')) -- 2.30.2