コード例 #1
0
def test_env_number_bad_values():
    c = InsightsConfig()
    with pytest.raises(ValueError):
        c.load_env()
コード例 #2
0
def test_env_number_parsing():
    c = InsightsConfig()
    c.load_env()
    assert isinstance(c.cmd_timeout, int)
    assert isinstance(c.retries, int)
    assert isinstance(c.http_timeout, float)