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