diff options
Diffstat (limited to 'tests/test_compile_markdown.py')
| -rw-r--r-- | tests/test_compile_markdown.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/test_compile_markdown.py b/tests/test_compile_markdown.py index d51d3aa..ace17cf 100644 --- a/tests/test_compile_markdown.py +++ b/tests/test_compile_markdown.py @@ -15,16 +15,10 @@ import unittest from os import path from nikola.plugins.compile.markdown import CompileMarkdown +from .base import BaseTestCase, FakeSite -class FakeSite(object): - config = { - "MARKDOWN_EXTENSIONS": ['fenced_code', 'codehilite'], - "LOGGING_HANDLERS": {'stderr': {'loglevel': 'WARNING', 'bubble': True}} - } - - -class CompileMarkdownTests(unittest.TestCase): +class CompileMarkdownTests(BaseTestCase): def setUp(self): self.tmp_dir = tempfile.mkdtemp() self.input_path = path.join(self.tmp_dir, 'input.markdown') @@ -61,9 +55,9 @@ class CompileMarkdownTests(unittest.TestCase): expected_output = '''\ <table class="codehilitetable"><tr><td class="linenos">\ <div class="linenodiv"><pre>1</pre></div>\ -</td><td class="code"><div class="code">\ -<pre><span class="kn">from</span> <span class="nn">this</span> -</pre></div> +</td><td class="code"><pre class="code literal-block">\ +<span class="kn">from</span> <span class="nn">this</span> +</pre> </td></tr></table> ''' |
