riptable.conftest
Functions
|
|
|
|
Session-level fixture that installs a top-level log handler (or formatter) at the DEBUG level (or anything higher than NOTSET). |
- riptable.conftest.docstring_imports(doctest_namespace)
- riptable.conftest.docstring_merge_datasets(doctest_namespace)
- riptable.conftest.get_doctest_dataset_data()
- riptable.conftest.register_null_log_handler()
Session-level fixture that installs a top-level log handler (or formatter) at the DEBUG level (or anything higher than NOTSET). It formats the messages in the typical way then just throws away the result. The idea is to just force all logging code to run, even if guarded with something like
if logger.isEnabledFor(logging.DEBUG):
so we exercise that code within the tests. This helps guard against bad logging code that’s only discovered when debug-level logging is enabled.