aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/tests/__init__.py')
-rw-r--r--markdown/tests/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/markdown/tests/__init__.py b/markdown/tests/__init__.py
index 63ddf5b..5834e17 100644
--- a/markdown/tests/__init__.py
+++ b/markdown/tests/__init__.py
@@ -4,7 +4,7 @@ import codecs
import difflib
import nose
import util
-from plugins import MdSyntaxError, HtmlOutput, MdSyntaxErrorPlugin
+from plugins import HtmlOutput, Markdown
from test_apis import *
test_dir = os.path.abspath(os.path.dirname(__file__))
@@ -25,10 +25,10 @@ def check_syntax(file, config):
output, output_file,
'actual_output.html', n=3)]
if diff:
- raise util.MdSyntaxError('Output from "%s" failed to match expected '
- 'output.\n\n%s' % (input_file, ''.join(diff)))
+ raise util.MarkdownSyntaxError('Output from "%s" failed to match expected '
+ 'output.\n\n%s' % (input_file, ''.join(diff)))
-def test_markdown_syntax():
+def TestSyntax():
for dir_name, sub_dirs, files in os.walk(test_dir):
# Get dir specific config settings.
config = util.CustomConfigParser({'extensions': '',
@@ -41,4 +41,4 @@ def test_markdown_syntax():
if ext == '.txt':
yield check_syntax, os.path.join(dir_name, root), config
-nose.main(addplugins=[HtmlOutput(), MdSyntaxErrorPlugin()])
+nose.main(addplugins=[HtmlOutput(), Markdown()])