def __init__(self): if self.config is None: self.config = confuse.Configuration("PandasProfiling", __name__) self.config.set_file(str(get_config_default())) logging.debug( "The config constructor should be called only once, you should see this message only once." )
def __init__(self): """The config constructor should be called only once.""" if self.config is None: self.config = confuse.Configuration("PandasProfiling", __name__, read=False) self.set_file(str(get_config_default()))
def test_double_config(console_data, test_output_dir): report = test_output_dir / "test_double_config.html" with pytest.raises(ValueError) as e: console.main([ "--config_file", str(get_config_default()), "--minimal", str(console_data), str(report), ]) assert (str(e.value) == "Arguments `config_file` and `minimal` are mutually exclusive.")
def __init__(self): """The config constructor should be called only once.""" if self.config is None: self.clear() else: self.set_file(str(get_config_default()))
def clear(self): self.config = confuse.Configuration("PandasProfiling", __name__, read=False) self.set_file(str(get_config_default()))