wbia.tests package¶
Submodules¶
wbia.tests.assert_modules module¶
Very useful script to ensure you have all the modules you need
- CommandLine:
- python -m wbia.tests.assert_modules python -m wbia.tests.assert_modules –test-assert_modules –nolibdep python -m wbia.tests.assert_modules –test-assert_modules
- MacFix:
- # Remove the copy of pyrf /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ sudo rm -rf pyrf-1.0.0.dev1-py2.7.egg/
- Updater For Linux:
sudo pip install matplotlib –upgrade sudo pip install Pillow –upgrade sudo pip install scipy –upgrade sudo pip install numpy –upgrade
./super_setup.py –bootstrap –upgrade
-
wbia.tests.assert_modules.
assert_modules
()[source]¶ checkinfo functions return info_dict checkinfo_func
- CommandLine:
- python -m wbia.tests.assert_modules –test-assert_modules
Example
>>> # DOCTEST_ENABLE >>> from wbia.tests.assert_modules import * # NOQA >>> detailed_msg = assert_modules() >>> print(detailed_msg)
-
wbia.tests.assert_modules.
checkinfo
(target=None, pipname=None)[source]¶ checkinfo functions return info_dict containing __version__
wbia.tests.reset_testdbs module¶
downloads standard test datasets. can delete them as well
-
wbia.tests.reset_testdbs.
get_testdata_dir
(ensure=True, key='testdb1')[source]¶ Gets test img directory and downloads it if it doesn’t exist
wbia.tests.run_tests module¶
-
wbia.tests.run_tests.
dynamic_doctest_modnames
()[source]¶ - CommandLine:
- python -m wbia.tests.run_tests dynamic_doctest_modnames –show
Example
>>> # DISABLE_DOCTEST >>> from wbia.tests.run_tests import * # NOQA >>> doctest_modname_list_ = dynamic_doctest_modnames() >>> result = ('doctest_modname_list_ = %s' % (ut.repr3(doctest_modname_list_),)) >>> print(result)