cachai.get_available_tests

cachai.get_available_tests()[source]

Retrieve the list of available test modules.

Returns
list of str

Names of the available tests (retrieved from the test files without the test_ prefix).

Examples

If you are running tests in the terminal, you can run cachai-test using the -l or --list option:

$ cachai-test -l
Available tests:
    utilities
    data
    dependencies
    gadgets
    charts

If you are working in a Python/Jupyter file:

import cachai as ch

tests = ch.get_available_tests()
print("Available tests:", tests)
Available tests: ['utilities', 'data', 'dependencies', 'gadgets', 'charts']