def clear_all_cfg():
    import moler.config as moler_cfg
    import moler.config.devices as dev_cfg
    from moler.device.device import DeviceFactory as dev_factory

    moler_cfg.clear()
    dev_cfg.clear()
    dev_factory._clear()
def moler_config():
    import moler.config as moler_cfg
    yield moler_cfg
    # restore since tests may change configuration
    moler_cfg.clear()
Exemplo n.º 3
0
def moler_config():
    import moler.config as moler_cfg
    moler_cfg.loaded_config = "NOT_LOADED_YET"
    yield moler_cfg
    # restore since tests may change configuration
    moler_cfg.clear()