graphcat.require module

Functionality for testing preconditions and assertions.

graphcat.require.loaded_module(modules)[source]

Function decorator that tests whether module(s) have already been loaded.

Parameters:modules (str or sequence of str, 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.