34a417cfa0
gluon/storage.py StorageList had a recursion error (please check the implementation before committing) gluon/tests* added the fix_path module to avoid those ugly lines at the beginning of each test file added tests for gluon.contenttype and test_fileutils added tests for missing Storage methods
35 lines
658 B
Python
35 lines
658 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
""" 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
|
|
import os
|
|
import doctest
|
|
import unittest
|
|
from fix_path import fix_sys_path
|
|
|
|
fix_sys_path(__file__)
|
|
|
|
|
|
def load_tests(loader, tests, ignore):
|
|
|
|
tests.addTests(
|
|
doctest.DocTestSuite('html')
|
|
)
|
|
tests.addTests(
|
|
doctest.DocTestSuite('utf8')
|
|
)
|
|
|
|
tests.addTests(
|
|
doctest.DocTestSuite('contrib.markmin.markmin2html',
|
|
)
|
|
)
|
|
|
|
return tests
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|