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.PyQt4_version()[source]
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.check_alternate_installs()[source]

/Library/Python/2.7/site-packages

wbia.tests.assert_modules.check_modules_exists()[source]
wbia.tests.assert_modules.checkinfo(target=None, pipname=None)[source]

checkinfo functions return info_dict containing __version__

wbia.tests.assert_modules.flask_cors_version()[source]
wbia.tests.assert_modules.flask_version()[source]
wbia.tests.assert_modules.get_site_package_directories()[source]
wbia.tests.assert_modules.lasagne_version()[source]
wbia.tests.assert_modules.matplotlib_version()[source]
wbia.tests.assert_modules.module_stdinfo_dict(module, versionattr='__version__', version=None, libdep=None, name=None, **kwargs)[source]
wbia.tests.assert_modules.networkx_version()[source]
wbia.tests.assert_modules.numpy_version()[source]
wbia.tests.assert_modules.opencv_version()[source]
wbia.tests.assert_modules.pandas_version()[source]
wbia.tests.assert_modules.pillow_version()[source]
wbia.tests.assert_modules.pyflann_version()[source]
wbia.tests.assert_modules.pygraphviz_version()[source]
wbia.tests.assert_modules.pyhesaff_version()[source]
wbia.tests.assert_modules.pyrf_version()[source]
wbia.tests.assert_modules.reg_std_version_check(version, modname)[source]
wbia.tests.assert_modules.scipy_linalg_version()[source]
wbia.tests.assert_modules.scipy_version()[source]
wbia.tests.assert_modules.statsmodels_version()[source]
wbia.tests.assert_modules.theano_version()[source]
wbia.tests.assert_modules.tornado_version()[source]
wbia.tests.assert_modules.version_ge_target(version, target=None)[source]
wbia.tests.assert_modules.vtool_version()[source]

wbia.tests.reset_testdbs module

downloads standard test datasets. can delete them as well

wbia.tests.reset_testdbs.delete_dbdir(dbname)[source]
wbia.tests.reset_testdbs.ensure_smaller_testingdbs()[source]

Makes the smaller test databases

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.reset_testdbs.reset_mtest()[source]
CommandLine:
python -m wbia –tf reset_mtest

Example

>>> # ENABLE_DOCTEST
>>> from wbia.tests.reset_testdbs import *  # NOQA
>>> result = reset_mtest()
wbia.tests.reset_testdbs.reset_testdbs(**kwargs)[source]
wbia.tests.reset_testdbs.testdb2_stuff()[source]

tar -zcvf testdb2.tar.gz testdb2/

wbia.tests.run_tests module

wbia.tests.run_tests.convert_tests_from_wbia_to_nose(module_list)[source]
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)
wbia.tests.run_tests.ensure_testing_data()[source]
wbia.tests.run_tests.run_tests()[source]
>>> from wbia.tests.run_tests import *  # NOQA
wbia.tests.run_tests.static_doctest_modnames()[source]

Module contents