imagecat.require module¶
Functionality for testing preconditions and assertions.
- imagecat.require.loaded_module(modules)[source]¶
Function decorator that tests whether module(s) have already been loaded.
- Parameters
modules (
str
or sequence ofstr
, required) – Names of the modules that must already be loaded for the wrapped function to execute.- Raises
RuntimeError – If any module in modules isn’t already loaded.