From ca94afc07df55cb7fc6fe3b4f3011877b7881195 Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Wed, 20 Nov 2013 16:58:50 -0300 Subject: Imported Upstream version 6.2.1 --- tests/test_compile_markdown.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/test_compile_markdown.py') 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: -- cgit v1.2.3