ibeis.tests package

Submodules

ibeis.tests.assert_modules module

Very useful script to ensure you have all the modules you need

CommandLine:

python -m ibeis.tests.assert_modules
python -m ibeis.tests.assert_modules --test-assert_modules --nolibdep
python -m ibeis.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

ibeis.tests.assert_modules.PyQt4_version(*args, **kwargs)[source]
ibeis.tests.assert_modules.assert_modules()[source]

checkinfo functions return info_dict checkinfo_func

CommandLine:

python -m ibeis.tests.assert_modules --test-assert_modules

Example

>>> # DOCTEST_ENABLE
>>> from ibeis.tests.assert_modules import *   # NOQA
>>> detailed_msg = assert_modules()
>>> print(detailed_msg)
ibeis.tests.assert_modules.check_alternate_installs()[source]

/Library/Python/2.7/site-packages

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

checkinfo functions return info_dict containing __version__

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

ibeis.tests.reset_testdbs module

downloads standard test datasets. can delete them as well

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

Makes the smaller test databases

ibeis.tests.reset_testdbs.get_testdata_dir(ensure=True, key=u'testdb1')[source]

Gets test img directory and downloads it if it doesn’t exist

ibeis.tests.reset_testdbs.reset_mtest()[source]

CommandLine:

python -m ibeis --tf reset_mtest

Example

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

tar -zcvf testdb2.tar.gz testdb2/

ibeis.tests.run_tests module

ibeis.tests.run_tests.ensure_testing_data()[source]
ibeis.tests.run_tests.run_tests()[source]
>>> from ibeis.tests.run_tests import *  # NOQA

Module contents