aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_compile_markdown.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-06-13 21:51:04 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-06-13 21:51:04 -0300
commit3dddbd8cc879402c2047919bccd20e6697082657 (patch)
tree38d6290f37be1d67d91c46027974e6ee3372e232 /tests/test_compile_markdown.py
parent7ac2cf148f7a8ea0de126fed3360b49964ce9b45 (diff)
parent58c4878526dec5510f23c812274686787d8724ba (diff)
Merge tag 'upstream/7.0.1'
Upstream version 7.0.1
Diffstat (limited to 'tests/test_compile_markdown.py')
-rw-r--r--tests/test_compile_markdown.py16
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>
'''