ocs_ci.tests package

Submodules

ocs_ci.tests.test_import_all module

This unit test tries to just import every module within ocs_ci module, to detect serious errors (eg. a syntax error) or dependency problems.

ocs_ci.tests.test_import_all.list_submodules(module_path, module_prefix)

For given module, return list of full module path names for all submodules recursively.

ocs_ci.tests.test_import_all.test_import(module)

Just try to import given module. In case of any error, test fails on import exception.

ocs_ci.tests.test_pytest_sanity module

ocs_ci.tests.test_pytest_sanity.test_nontest_code_unexpected_in_tests_dir()

Make sure that in tests directory, there are only test code (starts with test_ prefix), conftest.py or __init__.py files - nothing else.

Module contents