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