def configure_net_1_connection(): from moler.config import connections as conn_cfg conn_cfg.set_default_variant(io_type='memory', variant="threaded") conn_cfg.define_connection(name='net_1', io_type='memory') yield conn_cfg.clear()
def connections_config(): import moler.config.connections as conn_cfg yield conn_cfg # restore since tests may change configuration conn_cfg.clear()
def clear(): """Cleanup Moler's configuration""" global loaded_config loaded_config = ["NOT_LOADED_YET"] conn_cfg.clear() dev_cfg.clear()