def test_env_number_bad_values(): c = InsightsConfig() with pytest.raises(ValueError): c.load_env()
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)