Skip to content

Commit

Permalink
Merge pull request #78 from niphlod/feature/test_markmin
Browse files Browse the repository at this point in the history
add doctest hook for markmin. It wasn't run previously.
  • Loading branch information
mdipierro committed Apr 17, 2013
2 parents b0e3e38 + 6594e7a commit b5a7c7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
1 change: 0 additions & 1 deletion gluon/tests/__init__.py
Expand Up @@ -9,7 +9,6 @@
from test_template import *
from test_utils import *
from test_contribs import *
from test_markmin import *
from test_web import *

import sys
Expand Down
22 changes: 0 additions & 22 deletions gluon/tests/test_markmin.py

This file was deleted.

9 changes: 8 additions & 1 deletion gluon/tests/test_old_doctests.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

""" Unit tests for old doctests in validators.py, utf8.py, html.py.
""" Unit tests for old doctests in validators.py, utf8.py, html.py,
markmin2html.py.
Don't abuse doctests, web2py > 2.4.5 will accept only unittests
"""
import sys
Expand All @@ -27,6 +28,12 @@ def load_tests(loader, tests, ignore):
tests.addTests(
doctest.DocTestSuite('utf8')
)

tests.addTests(
doctest.DocTestSuite('contrib.markmin.markmin2html',
)
)

return tests

if __name__ == '__main__':
Expand Down

0 comments on commit b5a7c7e

Please sign in to comment.