diff options
| author | 2013-11-20 16:58:50 -0300 | |
|---|---|---|
| committer | 2013-11-20 16:58:50 -0300 | |
| commit | ca94afc07df55cb7fc6fe3b4f3011877b7881195 (patch) | |
| tree | d81e1f275aa77545f33740723f307a83dde2e0b4 /tests/test_compile_markdown.py | |
| parent | f794eee787e9cde54e6b8f53e45d69c9ddc9936a (diff) | |
Imported Upstream version 6.2.1upstream/6.2.1
Diffstat (limited to 'tests/test_compile_markdown.py')
| -rw-r--r-- | tests/test_compile_markdown.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_compile_markdown.py b/tests/test_compile_markdown.py index a1f8591..a8252d8 100644 --- a/tests/test_compile_markdown.py +++ b/tests/test_compile_markdown.py @@ -6,7 +6,14 @@ import tempfile import unittest from os import path -from nikola.plugins.compile_markdown import CompileMarkdown +from nikola.plugins.compile.markdown import CompileMarkdown + + +class FakeSite(object): + config = { + "MARKDOWN_EXTENSIONS": ['fenced_code', 'codehilite'], + "LOGGING_HANDLERS": {'stderr': {'loglevel': 'WARNING', 'bubble': True}} + } class CompileMarkdownTests(unittest.TestCase): @@ -16,6 +23,7 @@ class CompileMarkdownTests(unittest.TestCase): self.output_path = path.join(self.tmp_dir, 'output.html') self.compiler = CompileMarkdown() + self.compiler.set_site(FakeSite()) def compile(self, input_string): with codecs.open(self.input_path, "w+", "utf8") as input_file: |
