D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
lib
/
python3.6
/
site-packages
/
bs4
/
tests
/
Filename :
test_docs.py
back
Copy
"Test harness for doctests." # pylint: disable-msg=E0611,W0142 __metaclass__ = type __all__ = [ 'additional_tests', ] import atexit import doctest import os #from pkg_resources import ( # resource_filename, resource_exists, resource_listdir, cleanup_resources) import unittest DOCTEST_FLAGS = ( doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | doctest.REPORT_NDIFF) # def additional_tests(): # "Run the doc tests (README.txt and docs/*, if any exist)" # doctest_files = [ # os.path.abspath(resource_filename('bs4', 'README.txt'))] # if resource_exists('bs4', 'docs'): # for name in resource_listdir('bs4', 'docs'): # if name.endswith('.txt'): # doctest_files.append( # os.path.abspath( # resource_filename('bs4', 'docs/%s' % name))) # kwargs = dict(module_relative=False, optionflags=DOCTEST_FLAGS) # atexit.register(cleanup_resources) # return unittest.TestSuite(( # doctest.DocFileSuite(*doctest_files, **kwargs)))
Name
Size
Last Modified
Owner
Permissions
Actions
__pycache__
Dir
August 18 2024 4:13:00
root
0755
__init__.py
0.026
KB
August 11 2011 1:28:08
root
0644
test_builder_registry.py
5.451
KB
December 07 2014 2:24:22
root
0644
test_docs.py
1.042
KB
May 03 2012 2:09:26
root
0644
test_html5lib.py
4.792
KB
July 22 2019 6:44:40
root
0644
test_htmlparser.py
1.688
KB
July 15 2018 12:26:01
root
0644
test_lxml.py
2.583
KB
July 22 2019 6:44:40
root
0644
test_soup.py
19.848
KB
July 22 2019 6:44:58
root
0644
test_tree.py
78.2
KB
July 22 2019 6:44:46
root
0644
2017 © D7net | D704T team