def test_read_missing_configuration(self):
        testcfg = "/tmp/invalid_file"
        result = None
        with pytest.raises(Exception) as excinfo:
            result = config.load_config(config_file_override=testcfg)
        assert result is None
        assert "Couldn't find" in str(excinfo.value)
dataset/ETHPy150Open major/supernova/tests/test_config.py/TestConfig.test_read_missing_configuration/original