def test_get_config_bad_boolean(config): with pytest.raises(ValueError) as error: config.getboolean('database', 'driver') assert error.value == 'sqlite'
def test_get_config_multiple_files(): config = rigor.config.RigorDefaultConfiguration(constants.kConfigFile, constants.kConfigFile2) assert config.getboolean('import', 'hash_imports') is False
def test_get_config_boolean(config): assert config.getboolean('import', 'hash_imports') is True