def test_config_type_float(): assert config_type('1.75') == 1.75
def test_config_type(): x = [True, None, 'abc', 1, 1.5] assert config_type(", ".join(map(str, x))) == x
def test_config_type_int(): assert config_type('1') == 1
def test_config_type_bool(): assert config_type('True')