Merge branch 'master' of github.com:web2py/web2py
This commit is contained in:
@@ -5,6 +5,10 @@ source = gluon
|
|||||||
## remove comment if you want applications coverage too
|
## remove comment if you want applications coverage too
|
||||||
#source = gluon, applications
|
#source = gluon, applications
|
||||||
|
|
||||||
|
omit = gluon/contrib/*
|
||||||
|
gluon/tests/*
|
||||||
|
gluon/packages/*
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
# Regexes for lines to exclude from consideration
|
# Regexes for lines to exclude from consideration
|
||||||
exclude_lines =
|
exclude_lines =
|
||||||
@@ -23,10 +27,5 @@ exclude_lines =
|
|||||||
if 0:
|
if 0:
|
||||||
if __name__ == .__main__.:
|
if __name__ == .__main__.:
|
||||||
|
|
||||||
ignore_errors = True
|
|
||||||
omit = gluon/contrib/*
|
|
||||||
gluon/tests/*
|
|
||||||
gluon/packages/*
|
|
||||||
|
|
||||||
[html]
|
[html]
|
||||||
directory = coverage_html_report
|
directory = coverage_html_report
|
||||||
|
|||||||
@@ -861,6 +861,10 @@ class TestValidators(unittest.TestCase):
|
|||||||
self.assertEqual(rtn, [('', ''), ('id1', 'first label'), ('id2', 'second label')])
|
self.assertEqual(rtn, [('', ''), ('id1', 'first label'), ('id2', 'second label')])
|
||||||
rtn = IS_EMPTY_OR(IS_IN_SET([('id1', 'first label'), ('id2', 'second label')], zero='zero')).options()
|
rtn = IS_EMPTY_OR(IS_IN_SET([('id1', 'first label'), ('id2', 'second label')], zero='zero')).options()
|
||||||
self.assertEqual(rtn, [('', 'zero'), ('id1', 'first label'), ('id2', 'second label')])
|
self.assertEqual(rtn, [('', 'zero'), ('id1', 'first label'), ('id2', 'second label')])
|
||||||
|
rtn = IS_EMPTY_OR((IS_LOWER(), IS_EMAIL()))('AAA')
|
||||||
|
self.assertEqual(rtn, ('aaa', 'Enter a valid email address'))
|
||||||
|
rtn = IS_EMPTY_OR([IS_LOWER(), IS_EMAIL()])('AAA')
|
||||||
|
self.assertEqual(rtn, ('aaa', 'Enter a valid email address'))
|
||||||
|
|
||||||
def test_CLEANUP(self):
|
def test_CLEANUP(self):
|
||||||
rtn = CLEANUP()('helloò')
|
rtn = CLEANUP()('helloò')
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ def start():
|
|||||||
'gluon/contrib/pymysql',
|
'gluon/contrib/pymysql',
|
||||||
'gluon/contrib/pyrtf',
|
'gluon/contrib/pyrtf',
|
||||||
'gluon/contrib/pysimplesoap',
|
'gluon/contrib/pysimplesoap',
|
||||||
'gluon/contrib/pg8000',
|
|
||||||
'gluon/contrib/plural_rules',
|
'gluon/contrib/plural_rules',
|
||||||
'gluon/contrib/minify',
|
'gluon/contrib/minify',
|
||||||
'gluon/contrib/pyaes',
|
'gluon/contrib/pyaes',
|
||||||
|
|||||||
Reference in New Issue
Block a user