예제 #1
0
 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."
         )
예제 #2
0
    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()))
예제 #3
0
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()))