SP/web2py/gluon/tests/test_old_doctests.py

29 lines
578 B
Python
Raw Permalink Normal View History

2018-10-25 15:33:07 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Unit tests for old doctests in utf8.py, html.py, markmin2html.py.
Don't abuse doctests, web2py > 2.4.5 will accept only unittests
"""
import doctest
import unittest
def load_tests(loader, tests, ignore):
tests.addTests(
doctest.DocTestSuite('gluon.html')
)
tests.addTests(
doctest.DocTestSuite('gluon.utf8')
)
tests.addTests(
doctest.DocTestSuite('gluon.contrib.markmin.markmin2html',
)
)
return tests
if __name__ == '__main__':
unittest.main()