Merge pull request #78 from niphlod/feature/test_markmin

add doctest hook for markmin. It wasn't run previously.
This commit is contained in:
mdipierro
2013-04-17 15:11:29 -07:00
3 changed files with 8 additions and 24 deletions

View File

@@ -9,7 +9,6 @@ from test_storage import *
from test_template import *
from test_utils import *
from test_contribs import *
from test_markmin import *
from test_web import *
import sys

View File

@@ -1,22 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Unit tests for running web2py
"""
import sys
import os
if os.path.isdir('gluon'):
sys.path.append(os.path.realpath('gluon'))
else:
sys.path.append(os.path.realpath('../'))
import unittest
from contrib.markmin.markmin2html import run_doctests
class TestMarkmin(unittest.TestCase):
def testMarkmin(self):
run_doctests()
if __name__ == '__main__':
unittest.main()

View File

@@ -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
@@ -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__':