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